惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

小众软件
小众软件
量子位
博客园 - 叶小钗
Apple Machine Learning Research
Apple Machine Learning Research
U
Unit 42
IT之家
IT之家
F
Fortinet All Blogs
GbyAI
GbyAI
MongoDB | Blog
MongoDB | Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
大猫的无限游戏
大猫的无限游戏
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The Register - Security
The Register - Security
NISL@THU
NISL@THU
Webroot Blog
Webroot Blog
A
Arctic Wolf
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
Visual Studio Blog
Recent Announcements
Recent Announcements
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Blog — PlanetScale
Blog — PlanetScale
L
LangChain Blog
P
Palo Alto Networks Blog
Y
Y Combinator Blog
WordPress大学
WordPress大学
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
AWS News Blog
AWS News Blog
有赞技术团队
有赞技术团队
Engineering at Meta
Engineering at Meta
C
Cybersecurity and Infrastructure Security Agency CISA
aimingoo的专栏
aimingoo的专栏
Know Your Adversary
Know Your Adversary
Cyberwarzone
Cyberwarzone
Martin Fowler
Martin Fowler
The Hacker News
The Hacker News
P
Privacy International News Feed
T
Threat Research - Cisco Blogs
G
GRAHAM CLULEY
宝玉的分享
宝玉的分享
博客园 - 聂微东
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The GitHub Blog
The GitHub Blog
S
Securelist
T
The Exploit Database - CXSecurity.com
T
Threatpost
Microsoft Azure Blog
Microsoft Azure Blog
The Cloudflare Blog
F
Full Disclosure

Black Hills Information Security, Inc.

Bad Habits: An ANTISOC Operation Same Problem, Different Angles: When Red Team and Blue Team Actually Talk to Each Other How to Identify and Exploit New Vulnerabilities Swapper – A Pure Regex Match/Replace Burp Extension A Practical Guide to BloodHound Data Collection Network Engineering Basics Signed, Trusted, and Abused: Proxy Execution via WebView2 Getting Started In Pentesting – Advice From The BHIS Pentest Lead Cloud Security: Tips and Resources for Securing the Cloud Lessons From A Chatbot Incident How to Lead Effective Tabletops Understanding GRC: How to Navigate Risks and Compliance Standards The “P” in PAM is for Persistence: Linux Persistence Technique Malware Analysis: How to Analyze and Understand Malware OSINT: How to Find, Use, and Control Open-Source Intelligence What to Do with Your First Home Lab When the SOC Goes to Deadwood: A Night to Remember Social Engineering and Microsoft SSPR: The Road to Pwnage is Paved with Good Intentions Common Cyber Threats Finding the Right Penetration Testing Company Deceptive-Auditing: An Active Directory Honeypots Tool The Curious Case of the Comburglar How to Set Smart Goals (That Actually Work For You) Inside the BHIS SOC: A Conversation with Hayden Covington Abusing Delegation with Impacket (Part 3): Resource-Based Constrained Delegation Why You Got Hacked – 2025 Super Edition Abusing Delegation with Impacket (Part 2): Constrained Delegation Abusing Delegation with Impacket (Part 1): Unconstrained Delegation GoSpoof – Turning Attacks into Intel Model Context Protocol (MCP) Bypassing WAFs Using Oversized Requests Getting Started with AI Hacking Part 2: Prompt Injection Wrangling Windows Event Logs with Hayabusa & SOF-ELK (Part 2) DomCat: A Domain Categorization Tool Wrangling Windows Event Logs with Hayabusa & SOF-ELK (Part 1) Microsoft Store and WinGet: Security Risks for Corporate Environments Default Web Content MailFail Commonly Abused Administrative Utilities: A Hidden Risk to Enterprise Security Stop Spoofing Yourself! Disabling M365 Direct Send Bypassing CSP with JSONP: Introducing JSONPeek and CSP B Gone Offensive Tooling Cheatsheets: An Infosec Survival Guide Resource DNS Triage Cheatsheet GraphRunner Cheatsheet Burp Suite Cheatsheet Impacket Cheatsheet Wireshark Cheatsheet Hashcat Cheatsheet EyeWitness Cheatsheet Nmap Cheatsheet Netcat (nc) Cheatsheet Hunt for Weak Spots in Your Wireless Network with Airodump-ng from the Aircrack-ng Suite Detecting ADCS Privilege Escalation Vulnerability Scanning with Nmap Getting Started with NetExec: Streamlining Network Discovery and Access How to Use Dirsearch Augmenting Penetration Testing Methodology with Artificial Intelligence – Part 3: Arcanum Cyber Security Bot How to Design and Execute Effective Social Engineering Attacks by Phone Abusing S4U2Self for Active Directory Pivoting Why Use a Macro Pad? Espanso: Text Replacement, the Easy Way Caging Copilot: Lessons Learned in LLM Security Augmenting Penetration Testing Methodology with Artificial Intelligence – Part 2: Copilot Augmenting Penetration Testing Methodology with Artificial Intelligence – Part 1: Burpference Intercepting Traffic for Mobile Applications that Bypass the System Proxy How to Root Android Phones Communicating Security to the C-Suite: A Strategic Approach Offline Memory Forensics With Volatility Getting Started with AI Hacking: Part 1 Go-Spoof: A Tool for Cyber Deception How to Test Adversary-in-the-Middle Without Hacking Tools Canary in the Code: Alert()-ing on XSS Exploits How to Hack Wi-Fi with No Wi-Fi Why Your Org Needs a Penetration Test Program Burp Suite Extension: Copy For Light at the End of the Dark Web Wi-Fi Forge: Practice Wi-Fi Security Without Hardware Avoiding Dirty RAGs: Retrieval-Augmented Generation with Ollama and LangChain Gone Phishing: Installing GoPhish and Creating a Campaign 5 Things We Are Going to Continue to Ignore in 2025 John Strand’s 5 Phase Plan For Starting in Computer Security Questions From a Beginner Threat Hunter GRC for Security Managers: From Checklists to Influence AI Large Language Models and Supervised Fine Tuning Attack Tactics 9: Shadow Creds for PrivEsc w/ Kent & Jordan One Active Directory Account Can Be Your Best Early Warning Introduction to Zeek Log Analysis Indecent Exposure: Your Secrets are Showing Creating Burp Extensions: A Beginner’s Guide Pitting AI Against AI: Using PyRIT to Assess Large Language Models (LLMs) The Top Ten List of Why You Got Hacked This Year (2023/2024) ICS Hard Knocks: Mitigations to Scenarios Found in ICS/OT Backdoors & Breaches Intro to Data Analytics Using SQL Finding Access Control Vulnerabilities with Autorize The Detection Engineering Process Cyber Risk Lessons We Can Learn From Hurricane Preparedness Intro to Desktop Application Testing Methodology Adversary in the Middle (AitM): Post-Exploitation Pentesting, Threat Hunting, and SOC: An Overview QEMU, MSYS2, and Emacs: Open-Source Solutions to Run Virtual Machines on Windows
What Is Penetration Testing?
BHIS · 2024-11-07 · via Black Hills Information Security, Inc.

John Malone is a penetration tester for Black Hills Information Security. He regularly performs external, internal, and social engineering-based assessments. His favorite tools are confidence and charisma.

In today’s world, security is more important than ever. As organizations increasingly rely on technology to drive business, digital threats are becoming more sophisticated, varied, and difficult to defend against. One of the most effective ways to safeguard an organization’s digital assets is through penetration testing (or just “pen testing” for short). In this blog, we will explore what penetration testing is, why it’s vital for modern businesses, and how it fits into an organization’s overall security strategy.

A Penetration Tester

What is Penetration Testing?

Penetration testing is a method used to evaluate security by simulating an attack from malicious outsiders (who do not have authorized access) or insiders (who have some level of authorized access). The goal is to identify vulnerabilities, weaknesses, or misconfigurations that could be exploited by attackers.

It should be noted that penetration tests are not necessarily always focused on technology. These tests can encompass other vectors, such as physical penetration testing and social engineering tests.

Penetration testing should be about more than just running automated scans—penetration testing involves the manual exploitation of systems by pen testers to assess how far they can breach a network, application, or system. Pen testers seek to mimic real-world attack techniques to uncover gaps in security that could otherwise go unnoticed.

Types of Penetration Testing

Penetration testing can be applied to a wide variety of environments, each with its own methodologies and tools. Some of the most common types include:

  1. Network (External, Internal, and Assumed Compromise) Penetration Testing:
    Focuses on discovering vulnerabilities in internal and external network infrastructures, firewalls, and other network-based services. During this test, testers will perform activities such as port scans, mapping the network’s attack surface, and then performing attacks ranging from launching exploits against unpatched software services to relaying internal network traffic.
  2. Web Application Penetration Testing:
    Examines the security of websites and web applications. Common vulnerabilities tested include SQL injection, cross-site scripting (XSS), and authentication flaws.
  3. Mobile Application Penetration Testing:

Involves the testing of mobile applications against a variety of attacks. This can include authentication flaws, script-based attacks, and injections.

  1. Social Engineering Penetration Testing:
    Involves manipulating or deceiving employees into divulging sensitive information or performing actions that compromise the security of the organization, such as phishing attacks.
  2. Wireless Penetration Testing:
    Tests the security of an organization’s Wi-Fi networks and connected devices. Popular attacks performed during this test include MAC address spoofing and deauthentication attacks.
  3. Physical Penetration Testing:
    Evaluates the physical security controls of an organization by attempting to gain unauthorized access to buildings, servers, or other critical assets. During this test, you can expect a tester to try picking locks, social engineering employees, or cloning badges.
  4. Red Team Assessment:
    An assessment where the tester assumes the role of an advanced threat. Red teaming exercises can involve any of the above techniques as a means of attempting to gain entry.
A Red Teamer in Their Natural Habitat

Why is Penetration Testing Important?

Penetration testing serves as an essential component of a robust cybersecurity strategy for several reasons:

  • Identify Vulnerabilities Before Attackers Do:
    Regular penetration testing helps identify security gaps before real attackers can exploit them. This proactive approach allows organizations to strengthen their defenses by applying patches or mitigating security risks.
  • Simulate Real-World Attacks:
    A penetration test goes beyond automated vulnerability scans by employing the same techniques that would be used by malicious hackers, giving companies a real-world picture of their security posture. This allows for the test to happen in a controlled setting instead of at the hands of a cyber criminal.
  • Meet Compliance Requirements:
    Many industries are subject to regulatory standards such as PCI-DSS and HIPAA, which mandate regular security assessments, including penetration tests, to ensure compliance.
  • Evaluate Security Controls:
    It’s not enough to simply have security controls in place. A penetration test assesses whether these controls are functioning as intended and whether they are robust enough to fend off attackers.
  • Enhance Incident Response Capabilities:
    Pen tests help organizations prepare for potential attacks by identifying weaknesses in their incident response procedures. A good test can uncover deficiencies in how well an organization detects, responds to, and recovers from an attack.

The Penetration Testing Process

A typical penetration test generally follows these key phases:

  1. Pre-Engagement: Scope Definition and Rules of Engagement:

Before testing can even begin, the penetration tester and the client need to meet and share in an important discussion – scoping and expectations. This conversation usually takes place over a “rules of engagement call” (RoE call). The RoE call serves to establish scope, expectations, and considerations for both the tester and client and to ensure that both parties are on the same page. Timelines are discussed, as are deliverables, communication expectations, and any exceptions that may need to be excluded for testing – be they certain types of attacks or target hosts. This ensures that the penetration test is not only productive but is also performed in a safe way that minimizes the chance of complications arising as a result.

  1. Planning & Reconnaissance:
    Before the test begins, the penetration tester gathers information about the target through both active and passive means, identifying the systems, applications, and infrastructure that are in scope.
Gathering Information is Crucial for a Good Test

For social engineering and physical penetration tests, it is not uncommon to rely on gathering information from the internet or passive resources and avoid interacting with the target. For example, a tester may case the internet to see if they can locate images of an employee’s badge. This image can then be used by a tester to assist in creating a fake badge for an on-site visit.

  1. Scanning:
    During the scanning phase, testers use a variety of tools to map the network and detect potential vulnerabilities.
An Nmap Scan Against an Internal Network Target

For physical tests and social engineering engagements, this phase can take the form of performing more active forms of reconnaissance, such as gathering seemingly innocent information over phone calls or casing the exterior of a building to identify camera locations and types of badge readers.

  1. Exploitation:
    Here’s where the real testing begins. The ethical hacker attempts to exploit the vulnerabilities found during the scanning phase, using techniques like privilege escalation, SQL injection, or remote code execution to gain deeper access to the system.
Finding an Exploit on Metasploit

For social engineering, a tester may make calls to employees and present them with ruses in an effort to harvest sensitive information.

  1. Post-Exploitation:
    After gaining access, the tester will assess how much damage they could inflict, such as stealing sensitive data or escalating their privileges to an administrative level.
Delicious Root

               For social engineering engagements, this step of the process may involve looking to see what sensitive parts of the building can be accessed after security has been bypassed. Likewise, a social engineer may begin using compromised accounts to see what services inside of the network can be accessed.

  1. Reporting:
    Finally, the results are compiled into a comprehensive report detailing the vulnerabilities found, their risk levels, and recommendations for remediation.
The Most Important Part!

A strong report will also contain a detailed methodology that describes how the attacks took place and the results of each step. These steps can include helpful information, such as screenshots and commands used during testing, to better illustrate the exact process of the test.

Some Concluding Words

Penetration testing provides organizations with a clear understanding of their security weaknesses, allowing them to address vulnerabilities before they are exploited by malicious actors. As cyberattacks continue to rise in complexity, businesses that invest in regular penetration testing will be better equipped to defend against attacks.

Read more in our “Infosec for Beginners” blog series: