Ders 1 / 4 · 9 dk
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.
Bu sayfa şimdilik İngilizce.
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.
Akılda kalsın
- 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.
Kendinizi sınayın
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 — Doğru.
- 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 — Doğru.
- 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 — Doğru.
- A screenshot of access
- The tester’s invoice
The report turns the test into fixes; a retest confirms them.
FireAI ile uygulayın
Bu dersi kendi Mac’inizde uygulamaya koyun.
- Kurallar: uygulama, web sitesi, alan adı, IP veya bir aralık; sonsuza dek ya da yeniden başlatana kadar — Tek bir adres kadar kesin, ya da koca bir alan adı kadar geniş bir kural yazın.
- Dünya haritası — Kendinizin arayacağı bir ana bilgisayar adı değil, verilerinizin gerçekten nereye gittiğini görün.
- Bilinen güvenlik açıkları olan uygulamaları bulun — Herhangi biri kullanmadan bilinen açıkları kapatın: güncellemesi gereken tek uygulamayı güncelleyin.
- Güvenlik modları: Ev, Kafe, Çok temkinli, Saldırı altında — FireAI’ın sıkılığını, Mac’inizin gerçekte bulunduğu yere tek dokunuşla uydurun.
- Bir bağlantıyı inceleyin — Belirsiz bir uyarı yerine, önünüzdeki gerçeklerle karar verin.
Kaynaklar
- 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’inizde uygulayın
Tüm özellikleri 17 gün ücretsiz deneyin, kart gerekmez.