Explore our new Cybersecurity Terms Glossary, explained by our experts.

View the Glossary View the Glossary
PRIVIA

Cybersecurity Terms Glossary

What Is Metasploit?

Metasploit is an open-source penetration testing framework that provides a large library of exploits, payloads, and tools for testing systems against known vulnerabilities.

Illustration for the cybersecurity term Metasploit
Home / Blog / Cybersecurity Terms / What Is Metasploit?
17 November 2026

What Is Metasploit?

What Is Metasploit?

Metasploit is a framework for developing, testing, and running exploits against computer systems. It gives security professionals a consistent way to select a known vulnerability, pair it with a payload, configure the target, and launch the attack, all from one environment. It is one of the most widely used tools in penetration testing and is also studied closely by defenders, because attackers use it too.

The project was created by H. D. Moore in 2003, originally in Perl, and later rewritten in Ruby. The security company Rapid7 acquired it in 2009 and still maintains the open-source Metasploit Framework, alongside a commercial edition, Metasploit Pro, which adds automation, reporting, and a web interface.

Core Concepts

Metasploit is built around modules, each of which performs a specific job:

Module typePurpose
ExploitCode that takes advantage of a specific vulnerability
PayloadWhat runs on the target after successful exploitation, such as a command shell or Meterpreter session
AuxiliaryScanners, fuzzers, brute-force tools, and other functions that do not deliver a payload
PostActions performed after access, such as gathering credentials or escalating privileges
Encoder and evasionTransform payloads to avoid simple signature-based detection

The framework contains thousands of modules, covering vulnerabilities in operating systems, web applications, network devices, databases, and industrial systems. New modules are added regularly, often shortly after a vulnerability is disclosed.

How It Is Used

A typical workflow in the msfconsole command-line interface follows a simple pattern: search for a module, select it, set options such as the target address and port, choose a payload, and run it. Results are stored in a database, which helps testers track hosts, services, credentials, and findings across a larger engagement.

Meterpreter is Metasploit’s best-known payload. It runs in memory on the compromised system and gives the tester an interactive session for browsing files, capturing screenshots, dumping password hashes, pivoting into other networks, and loading further extensions. msfvenom generates standalone payloads in many formats, such as executables, scripts, and shellcode.

Metasploit is often used alongside other tools. A tester might discover hosts and services with Nmap, identify weaknesses with a vulnerability scanner, and then use Metasploit to confirm whether those weaknesses can actually be exploited.

Why Testers Use It

For penetration testers, Metasploit turns a theoretical finding into evidence. A scanner may report that a server is missing a patch; showing that the flaw can be exploited to gain a shell is far more persuasive to management and helps prioritise remediation. The framework’s consistent structure also saves time, since testers do not have to write or adapt a separate exploit for every vulnerability.

It is a valuable learning platform too. Deliberately vulnerable environments, such as the Metasploitable virtual machines, let students practise safely, and many professional certifications and training courses include Metasploit.

Legal and Ethical Use

Using Metasploit against systems without explicit permission is illegal. In the UK, unauthorised access and related offences fall under the Computer Misuse Act 1990. Professional engagements are always governed by a written scope, rules of engagement, and authorisation from the system owner. Even with permission, some exploits can crash services, so testers choose modules carefully and agree in advance how production systems will be handled.

What Defenders Should Know

Because Metasploit is freely available, it is a common tool for less sophisticated attackers, and its default behaviour is well documented. That works in defenders’ favour:

More advanced attackers tend to customise payloads or use other command-and-control frameworks, so detection should focus on behaviour, such as suspicious process injection and unusual outbound connections, rather than on tool signatures alone.

At Privia Security, our Penetration Test Services use Metasploit and other professional tools, under strict rules of engagement, to show which vulnerabilities in your environment are genuinely exploitable.

FAQ – Frequently Asked Questions

Is Metasploit Legal to Use?

Metasploit itself is legal software, freely available and widely used by security professionals. Using it against systems you do not own or have explicit written permission to test is illegal, and in the UK can be prosecuted under the Computer Misuse Act 1990. Professional testers always work within a signed scope and rules of engagement.

What Is the Difference Between Metasploit Framework and Metasploit Pro?

Metasploit Framework is the free, open-source core, used mainly through the command line. Metasploit Pro is Rapid7’s commercial edition, adding a web interface, automated exploitation workflows, phishing campaign features, team collaboration, and reporting. Many independent testers use the Framework, while larger teams may choose Pro for its automation and reporting.

What Is Meterpreter?

Meterpreter is an advanced Metasploit payload that runs in the memory of a compromised system and gives the tester an interactive session. It can browse files, capture credentials, take screenshots, pivot to other networks, and load extensions. Because default Meterpreter payloads are well known, most modern endpoint protection tools detect them.

Can Antivirus Detect Metasploit?

Most security products detect default Metasploit payloads and common techniques easily. Attackers can customise or obfuscate payloads to evade signature-based tools, which is why behavioural detection, endpoint detection and response, and network monitoring matter. Testing your defences against Metasploit in a controlled engagement is a useful way to check what they actually catch.

Related Terms

You May Be Interested In These

What Is a Cold Boot Attack?

Cybersecurity Terms

17 November 2026

What Is a Cold Boot Attack?

Read More
What Is Energy Sector Supply Chain Risk?

Cybersecurity Terms

17 November 2026

What Is Energy Sector Supply Chain Risk?

Read More
What Is the RSA Algorithm?

Cybersecurity Terms

17 November 2026

What Is the RSA Algorithm?

Read More