The offensive toolkit and what each tool is for

The tools you will meet, what they do, and what they leave behind

A beginner's map of the standard offensive security toolkit. For each tool: what it is for, how authorized testers use it, and what a defender can expect to see. Documentation-level, with pointers to the official docs.

beginner level, 15 minutes, 16 slides.

Open the interactive deck

The offensive toolkit and what each tool is for

Welcome. A beginner's map of the standard offensive security toolkit. For each tool: what it is for, how authorized testers use it, and what a defender can expect to see. Documentation-level, with pointers to the official docs. This talk runs about 15 minutes.

Tools are only tools

Every tool in this talk is free or has a free edition, and every one has an official manual. Each is also used by defenders. What makes a use legitimate is permission, not the tool.

The rule that goes with every tool: Use them only on systems you own or have written permission to test. The Nmap book says the best way to avoid controversy is to secure written authorization from the target network's representatives before any scanning.

Welcome. We are going to meet the standard toolkit of an authorized tester: what each tool is for, and just as important, what it looks like from the defender's chair. One rule applies to all of them. Permission first. The Nmap project says it plainly: get written authorization before you scan. If you take only one thing from this talk, make it that.

The toolkit follows the phases of a test

Our grouping, for orientation. Real tests move back and forth.

  • Find: Nmap, Wireshark
  • Probe the web: Burp, ZAP, ffuf, Nuclei, sqlmap
  • Check credentials: hashcat, John the Ripper
  • Map identity paths: BloodHound
  • Validate and emulate: Metasploit, Caldera, Atomic Red Team

Where this fits: NIST SP 800-115 describes discovery and attack as testing phases. See the deck How a penetration test works for the full picture.

Here is a rough order. First you find what is there. Then you probe web applications. You may check how strong passwords are. You may map who can reach what in a directory. And you validate or emulate. This grouping is our own, for orientation only. Real tests loop back and forth, and not every test uses every tool.

Nmap: what is on this network?

Nmap describes itself as a free and open source utility for network discovery and security auditing. Administrators also use it for network inventory and for monitoring host or service uptime.

ForIn short
Tester uses it toList live hosts, open ports and the services behind them, inside the agreed scope
Defender seesMany probes from one source across many ports or hosts. ATT&CK groups this under Network Service Discovery
Official docsnmap.org reference guide

Statement of work: The Nmap book says that in a penetration test the authorization to scan should be in the Statement of Work.

Nmap is where most tests begin. It finds which machines are alive and which services they offer. Administrators use it too, for inventory. A defender watching a firewall log sees one address knocking on many doors, which ATT&CK calls network service discovery. And the project reminds you that the authorization should be written into your statement of work.

Wireshark: read what is on the wire

Wireshark calls itself the world's leading network protocol analyzer. It lets you look closely at network traffic, and it is free and open source.

Testers use it to

  • See what an application really sends
  • Check whether traffic is protected
  • Understand a protocol before testing it

Defenders use it to

  • Investigate suspicious connections
  • Troubleshoot odd network behaviour
  • Examine captured evidence

Wireshark is different because it does not attack anything. It reads traffic. Testers use it to understand what an application is really sending. Defenders use it for the same reason when something looks wrong. It is a good first tool because it teaches how networks work. The two columns are our summary of common uses, and the quote about being a leading analyzer is the project's own.

Burp Suite Community: sit between the browser and the app

PortSwigger describes Burp Suite Community Edition as the best manual tools to start web security testing. Burp Proxy sends your browser's traffic through Burp so you can inspect it.

  • Burp's own browser is proxied through Burp automatically
  • Burp Proxy is the starting point for its other tools
  • The docs say to use Burp Proxy only against non-production systems until you are fully familiar with it

Why that warning exists: PortSwigger notes that using Burp Proxy may have unexpected effects in some applications. A test copy is the safe place to learn.

Burp Suite is the web tester's workbench. Its proxy sits between the browser and the web application, so you can see and change each request. PortSwigger describes the free Community Edition as manual tools to start web security testing. And look at its own safety note: until you know what you are doing, use it only against non-production systems. That is good advice for every tool in this talk.

Scanners: ZAP and Nuclei

ToolWhat its project saysTester use (our summary)
ZAPThe world's most widely used web app scanner; free and open sourceScan and proxy a web app you are allowed to test, often a test copy
NucleiA vulnerability scanner that uses simple YAML-based templatesCheck assets in scope for known issues, with agreed request rates

What defenders see: ATT&CK describes vulnerability scanning as checking whether a target's configuration, such as software and version, lines up with a known exploit. Bursts of unusual requests from one source are the usual sign in web logs.

Scanners automate the boring part. ZAP is a free web application scanner and proxy. Nuclei checks targets against community-written templates for known problems. A scanner finds possible issues; a human then confirms which are real. For defenders, ATT&CK calls this vulnerability scanning, and the signal is a burst of unusual requests from a single source.

ffuf: guess the pages nobody linked to

The ffuf README calls it a fast web fuzzer written in Go. Its documented uses include content discovery, virtual host discovery and parameter fuzzing.

What defenders see: ATT&CK's Wordlist Scanning describes probing infrastructure with brute-forcing and crawling, aimed at finding content rather than valid credentials. Because most guesses miss, expect many not-found responses in the web logs. That last point is our reasoning.

  • Gobuster describes itself as a directory/file, DNS and virtual host brute-forcing tool written in Go
  • Agree the request rate in the rules of engagement
  • SecLists describes itself as a collection of lists used during security assessments, including usernames, passwords, URLs and fuzzing payloads

Many sites have pages that are not linked from anywhere. Tools like ffuf try a long list of likely names and see which ones exist. That is called content discovery. It is fast and noisy: most guesses fail, so a defender sees lots of not-found responses from one source. The not-found point is our own reasoning. And because it can be heavy, the rules of engagement should set a request rate.

sqlmap: test one kind of flaw in depth

The sqlmap project describes it as open-source automation for detecting and exploiting SQL injection flaws, and taking over the databases behind them.

  • SQL injection means a program puts user input into a database query without handling it safely
  • Testers use sqlmap against applications and databases they are authorized to test, usually a test copy
  • Defenders see many requests with SQL syntax in web and firewall logs, and database errors

Aim at a test copy: A tool that can take over a database can also destroy one. Practise only on your own lab.

SQL injection is one of the oldest web flaws, and sqlmap is the tool that automates testing for it. The project's own description talks about detecting and exploiting the flaw and taking over the database, which tells you how powerful and how risky it is. That is why testers aim it at a test copy. The defender bullet is our summary of how this looks in logs.

Metasploit Framework: modules for known weaknesses

The Metasploit documentation welcomes users who want to get better at hacking stuff, in its words, that you have permission to hack. It points to the free, open-source Metasploit Framework.

  • A framework is a toolbox of ready-made modules, so testers do not start from scratch each time
  • Authorized testers use it to check that a finding is real, on in-scope systems or lab targets
  • Defender coverage is mostly specific to the weakness involved: intrusion detection signatures, endpoint alerts, unexpected outbound connections (our summary)

Check yourself: Which sentence matches the Metasploit project's own advice?

Answer: Use it on things you have permission to hack. The Metasploit documentation talks about hacking stuff that you have permission to hack.

Metasploit is a framework: a big library of ready-made modules for known weaknesses. Testers use it to prove a finding is real. Notice how the Metasploit documentation itself phrases the goal: hacking stuff you have permission to hack. That parenthesis is the whole ethic of this field. The defender line is our summary, because detection depends on which weakness was used.

hashcat and John the Ripper: how strong are these passwords?

ToolWhat its project says
hashcatWorld's fastest password cracker; free and open source under the MIT license
John the RipperA password cracker from Openwall; a free and open source edition is available for any platform
  • Authorized use: audit password strength from hashes you are allowed to handle, so the organization can fix its password policy
  • They work on hashes offline, so there is usually no network trace
  • ATT&CK's Password Cracking describes recovering usable credentials when hashes are obtained, and Brute Force covers guessing against a live service

A hash is a scrambled form of a password. If someone gets the hashes, they can try guesses against them on their own machine. hashcat and John the Ripper do that quickly. An authorized tester uses them to measure how strong a company's passwords really are. Because it happens offline, there is nothing on the network to see. Defenders look earlier in the chain: who could get the hashes at all.

BloodHound: who can become an administrator?

The BloodHound README says it uses graph theory to reveal hidden and often unintended relationships across identity and access management systems.

Both sides use it: The project says attackers can use BloodHound to discover attack paths that are hard to find manually, while defenders can proactively identify and mitigate those risks. Both red and blue teams benefit.

  • In a test it maps routes from an ordinary account to powerful ones, within the agreed scope
  • For defenders it is a way to find and remove risky permissions before anyone else does

Big networks have thousands of accounts, groups and permissions. BloodHound draws them as a graph so you can see chains: this user can reach that group, which can reach that server. The project says itself that both attackers and defenders benefit, and many defenders run it on their own directories. It is a good example of a tool where the offensive and defensive views are the same picture.

Caldera and Atomic Red Team: test the defence, not the network

Caldera

  • A cyber security platform to automate adversary emulation, assist manual red teams and automate incident response
  • Built on the MITRE ATT&CK framework

Atomic Red Team

  • A library of tests mapped to the ATT&CK framework
  • Lets security teams test their environments quickly, portably and reproducibly

The point is the detection: These are for checking whether your own logging and alerts catch a behaviour. Run them on systems you own, ideally a lab or approved test hosts.

These two are different. They are less about breaking in and more about checking the defence. Caldera automates adversary emulation. Atomic Red Team is a library of small tests, each mapped to an ATT&CK technique. A purple team runs one, then looks at the logs to see whether the alert fired. If it did not, they have found a gap that is cheaper to fix now.

Using tools well

  1. Get it in writing. Scope and rules of engagement before the first command
  2. Start on a test copy. Burp's own docs advise non-production systems until you know the tool
  3. Mind the rate. Scans and wordlists can be heavy; agree limits
  4. Log what you run. So the client can tell your activity from a real attacker's
  5. Read the docs. Each project's manual is the best source for what a tool does

Check yourself: A friend asks you to scan their company's website 'just to see'. What should you do first?

Answer: Ask for written permission that names what you may test. Written authorization comes first. The Nmap project recommends securing it from the target network's representatives before any scanning.

Five habits tie this together. Get it in writing. Practise on a copy. Mind the request rate. Keep a log, so a defender can tell you from a real attacker. And read the documentation, which every one of these projects publishes. Then try the labs: scan your own network, intercept your own web traffic, and look at your own attack paths.

Practise this

Slides only get you so far. Pick one of these hands-on labs and do it today while it is fresh. Every lab is free.

Sources

  • Nmap book: Legal issues
  • NIST SP 800-115
  • Nmap: network discovery and security auditing
  • ATT&CK T1046: Network Service Discovery
  • Wireshark
  • PortSwigger: Burp Suite Community Edition
  • PortSwigger: Burp Proxy documentation
  • ZAP (Zed Attack Proxy)
  • Nuclei README
  • ATT&CK T1595.002: Vulnerability Scanning
  • ffuf README
  • Gobuster README
  • SecLists README
  • ATT&CK T1595.003: Wordlist Scanning
  • sqlmap
  • Metasploit Documentation
  • hashcat
  • John the Ripper (Openwall)
  • ATT&CK T1110.002: Password Cracking
  • ATT&CK T1110: Brute Force
  • BloodHound README
  • MITRE Caldera README
  • Atomic Red Team README

Every claim in this deck came from these pages, fetched and checked for this release. Read the originals.

Hands-on labs for this deck

Open the interactive deck or see all slide decks.

Related