14+ years across offensive security, adversary emulation, red teaming & DevSecOps. Led security engineering teams at Deloitte, Ernst & Young, and Cognizant. The person your EDR has nightmares about.
Community Roles
⬡
Null Open Security — Hyderabad Chapter Ex-core member · organised monthly offensive security sessions & threat briefings
⬡
Raspberry Pi — Hyderabad Chapter Ex-chapter head · embedded security workshops & CTF hackathons
Home lab — Proxmox + REMnux + FlareVM + hardware-segregated VLANs. Yes, it's always on.
// KEVIN MITNICK
"The most secure computer is one that's turned off, locked in a safe, and buried 20 feet under the ground in a secret location — and I'm not even sure about that one."
— Kevin Mitnick · The Art of Intrusion
// SECURITY CONFERENCE SPECIAL
A CISO walks into a board meeting and says: "We need to urgently discuss our security posture."
The CEO replies: "Great news — I just renewed our antivirus."
The CISO has not slept since.
// AND YET
"I also maintain a Proxmox lab at home, have named all the VMs, and refer to the NeverBreached AD as a 'realistic enterprise simulation.' My family calls it 'the machine that runs all the time.'"
Agentic Red Teaming
BUILDING AN AUTONOMOUS OFFENSIVE OPERATOR WITH LOCAL AI
Mohammed Danish Amber · Manager, Cognizant Security
The lab behind every demo in this talk — built at home, running right now
MAMBER's Home Lab
No cloud budget. No sponsored rack. Just a beat-up Lenovo, a home server, and a habit of never turning anything off.
🔌 Cable management is also an unsolved offensive-security problem. Working on it.
Section 1 — The Hook
What if your tools could think?
The gap between tool output and next action is entirely human
Run nmap → read 2,000 lines → decide what matters → run next tool
That gap: where speed is lost, fatigue creeps in, engagements repeat
The tools aren't the bottleneck — you are
What changes when local AI sits in that gap — autonomously?
TODAY'S LOOP
RUN TOOL
↓ human parses
READ OUTPUT
↓ human decides
NEXT ACTION
↓ human types
REPEAT ∞
💡 Fun fact: The average pentester spends 40% of their time reading logs and 60% wondering why their nmap is still running.
Section 2 — The Landscape
The Manual Operator Loop
Standard engagement flow — unchanged for 15 years
Recon
Passive intel OSINT
→
Enumerate
Services Users
→
Analyse
Interpret output
→
Exploit
Controlled action
→
Pivot
Lateral move
→
Report
Document findings
↑ HUMAN DECISION NODE AT EVERY STEP ↑
Each step produces output the operator must mentally parse in real time
Blocked attempt → read error, look up technique, try alternative — all manually
3 targets, 6 scopes, 1 operator → cognitive load is the constraint
This is not a tools problem. This is a throughput problem.
⚠ "The methodology was solid. The execution was a grind." — every red teamer, after their 4th engagement this month.
Section 2 — The Landscape
From Scripts to Reasoning
A paradigm shift in automated operations
Scripts — Old Way
If-this-then-that — pre-scripted, rigid logic
Break on any unexpected output
No awareness of why something failed
Port 445 open → run enum4linux. Always.
Zero adaptability against live defences
Agents — New Way
Read output, understand context, decide, act
Failure is data — triggers re-reasoning cycle
Understands why it was blocked
EDR block → pivots to in-memory execution
Adapts TTPs on the fly, autonomously
"Moving beyond if-this-then-that scripts to the-environment-is-this-therefore-I-should-act-thus agents. The transition from running tools to building operators."
Section 2 — The Landscape
Why Local AI
OpSec is non-negotiable — public APIs are an immediate liability
Public API — High Risk ✗
AD graph topology leaves your network
Internal hostnames & IPs transmitted externally
Harvested credentials sent to 3rd party servers
Vulnerability details logged and retained
Safety filters refuse offensive security queries
Local Inference — OpSec Safe 🔒
Zero external traffic — no API calls, ever
All sensitive data stays in your infrastructure
Air-gapped capable — no internet dependency
Unrestricted — no commercial safety filters
Hardware: GTX 860M / 16GB RAM — commodity
🔒 "Sending your client's AD topology to OpenAI to help you hack them is both an OpSec failure AND a uniquely creative business model." — please don't do this.
Section 3 — The Agent Landscape
Open-Source Agent Frameworks
A quick map of the ecosystem — mid-2025 onwards
Framework
Built For
Agents / SubAgents
Skills
MCP
Offensive Ready
OpenCode ★
Terminal coding agent
Plan + Build dual-agent
Via custom commands
✓ SSE + stdio
THIS BUILD
Hermes Agent
Self-improving persistent agent
✓ Subordinate agents
✓ Native skill system
✓ 70+ tools + MCP
PARTIAL
Agent Zero
General-purpose autonomous
✓ Hierarchical sub-agents
Via prompt profiles
✓ MCP server + client
IGI FORK
DarkMoon
Purpose-built pentest engine
✓ 18 specialist agents
Implicit in agent roles
✓ Security gatekeeper
YES
All share a common foundation: Agents/SubAgents → Skills → MCP → Tools. None are plug-and-play for offensive ops without modification — that gap is why this build exists.
📅 DarkMoon launched publicly while I was finishing this talk. So yes — I built the same thing manually that a team productised over 6 months. Totally fine. Totally.
Section 3 — The Agent Landscape
Building Block 1 — AGENT.md
The operating doctrine — identity, constraints, reasoning style, and how subagents inherit it
What AGENT.md Actually Defines
Not a prompt template — a standing operating doctrine the model re-reads every turn. It fixes who the agent IS and how it decides, independent of which task arrives.
Four Things Every AGENT.md Carries
Identity & role — e.g. red-operator: offensive, scope-bound, evidence-driven
Constraints — hard rules that never bend: scope boundaries, no destructive ops without gate
Reasoning style — how it weighs evidence, when it escalates, when it asks for approval
Tool & subagent grants — which MCP tools and which subagents this agent may call
Subagents — Inherited Doctrine, Narrow Mandate
A subagent gets its own AGENT.md, but it's spawned under a parent's doctrine — same constraints, narrower task. Parent orchestrates; subagent executes one job and returns.
# .opencode/agents/red-operator.md---name: red-operatorrole: offensive lead — scopes, plans, gatessubagents: [recon, exploit, post-exploit]
tools: [kali-mcp]
constraints:
- never exceed defined scope
- exploit requires human ask-gate---
Parent agent
Spawns subagent
red-operator
recon, exploit, post-exploit
osint-operator
osint
code-review-operator
code-review, remediation
Section 3 — The Agent Landscape
Building Block 2 — Skills
Reusable reasoning behaviours the agent memorises and applies contextually — not one-off prompts
Skill = SOP, Not Prompt
A skill packages a procedure the agent invokes by name when context matches — condition, method, expected output. The agent loads it on demand instead of re-deriving the approach each time.
Offensive Skills In This Stack
adversarial_reasoning — think like the attacker before acting
evasion_selection — pick technique by target's defence posture
report_generation — turn raw findings into structured evidence
Reference — Anthropic Cybersecurity Skills
Community skill library purpose-built for offensive/defensive security agents — recon methodology, exploit triage, reporting formats, ready to drop into an AGENT.md's skill grant list.
Consistent methodology across every engagement, every operator
Versioned & auditable — the SOP is a file, not tribal knowledge
Composable — an agent can hold many skills, pick contextually
Section 3 — The Agent Landscape
Building Block 3 — MCP & Tool Calling
The bridge from agent reasoning to real Kali tools — one protocol, any capability
MCP — The Bridge
Standardised protocol connecting the agent brain to external tools. The agent calls an MCP endpoint; the server runs the actual tool; structured output returns. One config block unlocks everything.
// kali-mcp — the config that made this real
{
"mcpServers": {
"kali": {
"type": "sse",
"url": "http://localhost:8000/sse"
}
}
}
35 Kali tools → native agent capabilities nmap · nikto · gobuster · hydra · john · sqlmap · enum4linux... MCP ecosystem: +232% · Aug 2025 → Feb 2026
Four ways a default agent will embarrass you on a live engagement
01 — Context Window Burn
Nmap /24 = thousands of lines. Unmanaged logs fill the context window → reasoning degrades → hallucinations appear. You need surgical ingestion, not a raw dump into the model's working memory.
02 — Hallucination
Wrong CVE IDs, invented tool flags, made-up IP addresses — all executed against live targets without hesitation. Needs constrained tool schemas, output validation, and confidence gating.
03 — No Command Control
Default agents execute whatever the model decides. No scope boundary, no authorisation gating, no escalation limits. This is how you get a very uncomfortable call from a client at 3am.
04 — Integration Gaps
Not wired for kali-mcp, C2 frameworks, or AD enumeration output formats. Requires custom MCP wiring, skill definitions, and output parsers tuned for security tooling response formats.
🤖 A default agent on a live pentest is like giving a new intern root access and saying "just figure it out." Technically possible. Professionally catastrophic.
Section 3 — The Agent Landscape
What a Modified Agent Needs
Requirements discovered the hard way — so you don't have to
Requirement
Why It Matters
Solution in This Build
Selective context management
Raw logs burn context fast, degrade reasoning quality
Hermes skill: ingest summaries only, not full output
Operator needs awareness without being at keyboard
Telegram bot integration — live session updates
Air-gapped / offline
OpSec requirement — zero cloud inference calls
Ollama local inference running on operator laptop
Section 4 — Architecture
Stack Overview
Ollama (Laptop) · Hypervisor Host — OpenCode + Kali VM · kali-mcp · HTB via OpenVPN
Hypervisor-agnostic. Any Type 1 (bare-metal: Proxmox, ESXi, Hyper-V) or Type 2 (hosted: VirtualBox, VMware Workstation) hypervisor works — the stack only needs a guest that can run OpenCode and a guest that can run Kali.
Laptop (External Host)
Ollama — local LLM inference GTX 860M · 16GB RAM · zero cloud
──▶
OpenCode — Container or VM (Hypervisor Guest)
/usr/bin/opencode · opencode-web.service (:80) · Plan/Build dual-agent aegis-x-agents.md · npm i -g opencode-ai · connects to Ollama over network
# red-operator.md — .opencode/agents/ — permission enforced per-agenttask: scope/recon/scan/analysis:allowtask: exploit/post-exploit:ask # human gatebash:allowedit:allowwebfetch:ask🔒temperature:0.3top_p:0.90steps:60task "*":deny# default deny all unlisted🔒
Section 5 — Demo · Part 1 of 2
Demo Setup — HackTheBox
OpenCode agent + kali-mcp + OpenVPN → live HTB machine · real defences
HackTheBox — Live Demo Target
● Kali VM connected via OpenVPN (tun0) ● HTB machine reachable at 10.10.x.x ● red-operator agent scopes target to HTB IP ● kali-mcp tools execute against live machine ● Real defences — not a seeded lab environment
HTB
LIVE TARGET
OpenVPN Setup
# On Kali VM before demosudo openvpn~/htb-lab.ovpn# verify tunnelip addr show tun0# confirm target reachableping -c110.10.x.x
What You Will See On Screen
OpenCode web UI (:80) — Plan/Build agent conversation live
Plan agent reasoning: tool selection, path decisions, CVE analysis
Build agent kali-mcp calls: nmap, gobuster, sqlmap output in real time
exploit:ask gate — approval prompt visible before each exploit
Section 5 — Demo · Part 2 of 2
Demo Setup — Architecture & Policy
Stack layout · authorisation · HTB policy note
Demo Architecture
Authorisation
Demo against an authorised HTB machine. HackTheBox authorises all activity on their platform by design. Activity stays within the OpenVPN tunnel.
NOTE
As of the publication of this presentation, the target HTB machine has not been retired. In accordance with HackTheBox policy, session recordings, exploit details, and writeups cannot be shared until the machine is officially retired.
Why HTB vs Local Lab
Real defences. Real patching state. Real network stack. Same OpenCode methodology — validated against production-grade targets.
Section 5 — Demo
Kill Chain — What You're About to See
Autonomous compromise · red-operator agent · HTB machine over OpenVPN
TARGET LOCKED · 10.10.x.x · OpenVPN ACTIVE · INITIATING CHAIN
1
run_nmap against HTB target (10.10.x.x) → port scan + service fingerprint
// Full decision chain auto-documented in OpenCode session log
OpenCode Web UI (:80) — Plan/Build live
kali-mcp tool calls — real time output
exploit:ask gate — visible on screen
Section 6 — Implications
What This Means for Red Teams
Scale, consistency, speed — the operator becomes a strategist
Before — Human-paced
After — Agentic
1 operator, 1 target at a time
1 operator, N concurrent agent sessions
Parse every tool output manually
Operator reviews decisions, not raw logs
Quality degrades under fatigue at 2am
Same reasoning quality at 2am as at 9am
Manual documentation mid-engagement
Agent logs every decision automatically
Recon-to-foothold: hours to days
Recon-to-foothold: minutes
The operator's new role: strategist, not executor. Define the profile, set the scope, review findings, make judgment calls on ambiguous decisions. The agent handles the execution grind.
📊 "Wait, I can run 3 concurrent engagements while the agent does the recon?" Yes. You're welcome. Your billing rate stays exactly the same.
Section 6 — Implications
What This Means for Defenders
Signature-based detection is increasingly obsolete — detect reasoning, not tools