Install
$ agentstack add skill-santosomar-ethical-hacking-agent-skills-pt-lotl-techniques ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ● Network access Used
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Living-off-the-Land (LotL) Techniques
Authorized Use Only
Execute LotL techniques only within explicitly approved scope, target systems, and test windows. Document every action with timestamps. Stop immediately if impact exceeds rules of engagement.
Objectives
- Simulate realistic threat actor behavior using only native OS tools.
- Demonstrate attack paths without introducing custom malware.
- Validate detection gaps and measure real-world exploitability.
- Produce reproducible evidence for reporting.
Approach
LotL abuses tools that already exist on the target — scripting engines, admin utilities, and built-in OS features — to blend in with legitimate activity.
Decide platform first, then select techniques:
- Windows target → see Windows Techniques below
- Linux/macOS target → see Unix Techniques below
- Mixed environment → run applicable sections for each platform
Windows Techniques
Technique families to demonstrate in approved scope:
- Execution: PowerShell, cmd, WScript, CScript, mshta, rundll32, regsvr32
- Discovery: net, nltest, ipconfig, whoami, tasklist, reg query, wmic
- Credential access: accessing memory-resident material via built-in utilities
- Lateral movement: PsExec-style invocation, WMI remote execution, WinRM
- Persistence: scheduled tasks (schtasks), registry run keys, service creation (sc)
- Exfil/staging: certutil (encode/decode), bitsadmin, curl (built-in), Invoke-WebRequest
For each technique:
- Confirm it is in scope and the target is approved.
- Use the minimal invocation needed to prove feasibility.
- Record full command line, output, and timestamp.
- Note whether any EDR/SIEM alert fired.
Unix Techniques
Technique families to demonstrate in approved scope:
- Execution: bash, sh, python3, perl, ruby, awk — whichever is present
- Discovery: id, uname, hostname, ss/netstat, ps, find, env
- Credential access: reading credential files, checking config files for embedded secrets
- Lateral movement: SSH key reuse, sudo abuse, cron-assisted pivoting
- Persistence: crontab, rc.local/systemd unit, bashrc/profile additions, SSH authorized_keys
- Exfil/staging: curl, wget, nc, python http.server, scp
For each technique:
- Confirm it is in scope and the target is approved.
- Use minimal, reversible commands that demonstrate the path.
- Record full command, output, and timestamp.
- Note whether any monitoring or alerting responded.
Execution Workflow
- Review scope and approved target list.
- Select relevant technique families based on target platform and test goals.
- Execute techniques one at a time, logging each step.
- For each successful technique, assess realistic downstream impact.
- Capture alert/detection response (or absence of it).
- Clean up any created artefacts (files, tasks, keys, registry keys).
- Package evidence for reporting.
Output Template
# LotL Techniques Output
## Engagement Context
- Targets:
- Platforms:
- Approved technique families:
- Test window:
## Demonstrated Techniques
### [Technique Name]
- Platform:
- Tool/binary used:
- Command executed:
- Output observed:
- Impact demonstrated:
- Detection triggered: Yes / No / Unknown
- Artefacts created and cleaned up:
## Detection Visibility Summary
- Techniques that triggered alerts:
- Techniques with no detection:
- Overall detection gap assessment:
## Handoff to Reporting
- High-impact paths to highlight:
- Recommended defensive improvements:
Quality Checks
- Every technique execution is timestamped and reproducible.
- All created artefacts are removed during cleanup.
- Detection response (or absence) is documented for every technique.
- Impact is framed in realistic threat-actor terms for the report.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: santosomar
- Source: santosomar/ethical-hacking-agent-skills
- License: Apache-2.0
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.