Урок 1 з 4 · 9 хв
The penetration-testing lifecycle: attacking with permission
What separates a penetration test from an attack, the phases every professional test follows, and why the report is the real product.
Поки що ця сторінка англійською.
A penetration test is a simulated attack, carried out with permission, to find weaknesses before real attackers do. NIST defines it as security testing in which evaluators mimic real-world attacks to identify ways to circumvent the security features of an application, system or network. The techniques can look identical to a criminal’s. The difference is everything around them: authorization, scope, rules, and a report written to help the defenders.
Phase 0: authorization and rules of engagement
Before any technical work, the tester and the client agree in writing on the scope (which systems, addresses and applications are in, which are out), the time window, the techniques allowed (is phishing staff allowed? physical entry?), who to call if something breaks, and how sensitive data found during the test will be handled. This document is what makes the test legal and what protects both sides. NIST’s technical guide to security testing (SP 800-115) treats planning and rules of engagement as a formal phase, not a formality.
Phase 1: planning
The team decides what the test is trying to answer. “Can an outsider reach customer data?” leads to a different test from “What can a malicious employee do?” The type of test matters too: black-box (the tester starts with no inside knowledge, like an outside attacker), white-box (full documentation and access, to find as much as possible) or grey-box, somewhere in between.
Phase 2: reconnaissance
Reconnaissance gathers information about the target, first passively (public sources, without touching the target’s systems) and then actively. MITRE ATT&CK lists reconnaissance as the first tactic in an attacker’s playbook, which is exactly why defenders care about it: what a tester can learn here, a criminal can learn too. The next lesson covers open-source intelligence in detail.
Phase 3: scanning and enumeration
The tester maps what is reachable: which hosts respond, which services and versions they run, and which of those have known vulnerabilities. Vulnerability databases and severity scores such as CVSS help decide what is worth attention. Scanning is noisy by nature, which is why a good SOC should notice it; if the client’s monitoring does not see the test, that is itself a finding.
Phase 4: exploitation
Exploitation means actually using a weakness to gain access, within the agreed limits, to prove that the risk is real rather than theoretical. Professionals choose the least disruptive way to demonstrate impact, stop when they reach the agreed objective, and never keep data they do not need. Post-exploitation (what an attacker would do next, such as escalating privileges) is covered in the last lesson of this course.
Phase 5: reporting
The report is the real product. A useful one has two parts: an executive summary that explains business risk in plain language, and a technical section with each finding, its severity, evidence, and clear steps to fix it. The best reports also note what worked well and what the defenders detected, because a test that only lists failures misses half the lesson. A retest after fixes confirms the gaps are really closed.
Penetration test, red team, bug bounty
| Exercise | Goal | Defenders know? |
|---|---|---|
| Vulnerability scan | Find known weaknesses automatically, broadly | Yes |
| Penetration test | Find and prove as many weaknesses as possible in a scope | Usually yes |
| Red team exercise | Test detection and response against a realistic, goal-driven adversary | Often only a few people know |
| Bug bounty | Let independent researchers report flaws under published rules, for rewards | Yes, rules are public |
All four are legitimate only inside a clear agreement. That shared foundation, permission first, is what the security profession is built on.
Головне
- A penetration test is a permitted, scoped simulation of an attack; without written authorization it is a crime.
- Rules of engagement define scope, allowed techniques, timing and emergency contacts.
- Phases: planning, reconnaissance, scanning, exploitation, reporting.
- The report, with clear fixes and a retest, is what makes the test valuable.
Перевірте себе
1. What makes a penetration test legal?
- Using only well-known tools
- Written authorization and agreed rules of engagement from someone entitled to give them — Правильно.
- Not changing any data
- Testing only at night
Without explicit, written permission and scope, the same activity is unauthorised access.
2. In a black-box test, what does the tester start with?
- Full source code and credentials
- No inside knowledge, like an outside attacker — Правильно.
- Physical keys to the building
- The company’s SIEM access
Black-box tests simulate an external attacker with no prior information.
3. Which is the real deliverable of a penetration test?
- The list of tools used
- A report with findings, evidence, severity and clear remediation steps — Правильно.
- A screenshot of access
- The tester’s invoice
The report turns the test into fixes; a retest confirms them.
Застосуйте на практиці з FireAI
Застосуйте цей урок на своєму Mac.
- Правила: застосунок, сайт, домен, IP чи діапазон, назавжди або до перезавантаження — Напишіть правило точне, як одна адреса, або широке, як цілий домен.
- Карта світу — Побачте, куди насправді йдуть ваші дані, а не лише назву хоста, яку довелося б шукати самостійно.
- Знайдіть застосунки з відомими вразливостями — Закрийте відомі прогалини раніше, ніж ними хтось скористається: оновіть той один застосунок, якому це потрібно.
- Режими безпеки: Дім, Кав’ярня, Параноїк, Під атакою — Підлаштуйте суворість FireAI під те, де насправді перебуває ваш Mac, одним дотиком.
- Дослідіть з’єднання — Вирішуйте, маючи факти перед собою, а не розпливчасте попередження.
Джерела
- NIST SP 800-115: Technical Guide to Information Security Testing and Assessment
- NIST CSRC Glossary: penetration testing
- MITRE ATT&CK: Reconnaissance (TA0043)
- FIRST: Common Vulnerability Scoring System (CVSS)
- UK Computer Misuse Act 1990
- U.S. Department of Justice: policy for charging cases under the Computer Fraud and Abuse Act
Застосуйте це на своєму Mac
Усі функції безкоштовно на 17 днів, без банківської картки.