CCyberwiki

Stages of an attack on a web application

The stages of an attack on a web application are a simplified model of the order in which an attacker works, from gathering information to causing harm. This wiki uses six stages, adapted from the fifteen tactics that MITRE ATT&CK lists for enterprise systems.1

Stages

Table 1. The six stages, the corresponding ATT&CK tactics and the articles under each.
No.StageDescriptionATT&CK tacticsArticles
1ReconnaissanceInformation about the application is gathered from public sources and by scanning.Reconnaissance (TA0043)Exposed sensitive files, Client-side code exposure, Exposed credentials in source code repositories, Subdomain enumeration, Exposed API documentation and debug endpoints
2Initial accessA first foothold is gained: an account, a key, a query or a server shell.Initial Access (TA0001), Credential Access (TA0006)Abuse of leaked API keys, Credential stuffing, Brute-force attack, SQL injection, Cross-site scripting, Command injection, Path traversal, Publicly exposed database, Exposed administration interface, Vulnerable dependencies, Malicious packages, SSH brute-force attack, Phishing
3Privilege escalationThe foothold is widened to data or functions beyond the first account.Privilege Escalation (TA0004), Lateral Movement (TA0008)Insecure direct object reference, Privileged key in client-side code, Server-side request forgery, Cross-site request forgery, Over-privileged access token, Secret exposure in CI/CD workflows, Docker socket exposure
4PersistenceAccess is kept after the first weakness is fixed or the password is changed.Persistence (TA0003)SSH authorized key persistence, Rogue administrator account, Scheduled task persistence, Session hijacking, Orphaned access tokens and OAuth grants, Software supply chain compromise
5Collection and exfiltrationData is gathered and copied out of the application.Collection (TA0009), Exfiltration (TA0010)Database dumping, Public cloud storage bucket, Exposed backups, API scraping, Personal data in logs
6ImpactThe application, its data or its owner's resources are damaged or misused.Impact (TA0040)Website defacement, Ransomware and data destruction, Denial of wallet, Email spoofing, Cryptojacking, Denial-of-service attack, Subdomain takeover

Use

A real attack can skip stages or take them out of order. An attacker who finds an exposed key during reconnaissance may move directly to collection; a defacement may follow initial access without any persistence.

See also

References

  1. back "Enterprise tactics". MITRE ATT&CK.