Speaker Introduction
Mohammed Danish Amber
Mohammed
Danish Amber
MANAGER · COGNIZANT SECURITY
ADVERSARY SIMULATOR · 14+ YRS
● KOLKATA, INDIA
OSCP GREM ECSA CEH CHFI CCSK RHCE
web  mohammeddanishamber.com
gh   github.com/mddanish
in    /mohammed-danish-amber
// BACKGROUND
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
What I Build
//
OpenCode agent stack — 11 primary agents + 12 subagents · aegis-x-agents.md · kali-mcp
//
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
OpenCode Edition  ·  11 Primary Agents  ·  12 Sub-Agents
// LLM REASONING CYCLE
// RED TEAM ATTACK CYCLE
// EDR EVASION CYCLE
// OPERATOR CONTROL LOOP
Section 1 — The Hook
This Is Not a Slide Deck Fantasy
The lab behind every demo in this talk — built at home, running right now
MAMBER's home lab setup
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
FrameworkBuilt ForAgents / SubAgentsSkillsMCPOffensive Ready
OpenCode ★Terminal coding agentPlan + Build dual-agentVia custom commands✓ SSE + stdioTHIS BUILD
Hermes AgentSelf-improving persistent agent✓ Subordinate agents✓ Native skill system✓ 70+ tools + MCPPARTIAL
Agent ZeroGeneral-purpose autonomous✓ Hierarchical sub-agentsVia prompt profiles✓ MCP server + clientIGI FORK
DarkMoonPurpose-built pentest engine✓ 18 specialist agentsImplicit in agent roles✓ Security gatekeeperYES

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-operator role: offensive lead — scopes, plans, gates subagents: [recon, exploit, post-exploit] tools: [kali-mcp] constraints: - never exceed defined scope - exploit requires human ask-gate ---
Parent agentSpawns subagent
red-operatorrecon, exploit, post-exploit
osint-operatorosint
code-review-operatorcode-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.

// skill source github.com/mukul975/anthropic-cybersecurity-skills
Why Skills Beat One-Off Prompting
  • 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

Offensive MCP Servers Worth Knowing
ProjectFocus
hexstrike-aiKali-mcp — this stack's tool backend
CyberStrikeAIOffensive MCP toolchain
pentestagentAgentic pentest automation over MCP
bearstrike-aiOffensive MCP toolchain
PortSwigger mcp-serverBurp Suite exposed via MCP
// this stack — kali-mcp github.com/0x4m4/hexstrike-ai // offensive MCP ecosystem github.com/AIPentest/CyberStrikeAI github.com/GH05TCREW/pentestagent github.com/Roshu18/bearstrike-ai github.com/portswigger/mcp-server
Section 3 — The Agent Landscape
Why Not Out of the Box?
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
RequirementWhy It MattersSolution in This Build
Selective context managementRaw logs burn context fast, degrade reasoning qualityHermes skill: ingest summaries only, not full output
Adversarial reasoning skillGeneric LLM reasoning ≠ offensive security reasoningCustom adversarial_reasoning.md skill file
kali-mcp native wiringTools must be accessible as MCP endpointskali-mcp SSE server running on port 8000
Command gatingZero unbounded execution on live target scopesOperator profiles enforced at MCP call layer
Self-correction on failureEDR blocks, unexpected output, tool errorsSkill: parse error → analyse → retry alternate technique
Mobile C2 visibilityOperator needs awareness without being at keyboardTelegram bot integration — live session updates
Air-gapped / offlineOpSec requirement — zero cloud inference callsOllama 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
↓
Kali Linux VM — Hypervisor Guest
kali-mcp SSE :8000 · 35 tools · ● OpenVPN → HackTheBox (tun0 · 10.10.x.x)
nmap · nikto · gobuster · hydra · john · sqlmap · enum4linux · metasploit...
↓
Target — HackTheBox Machine
Active HTB machine · accessible via OpenVPN tun0 · 10.10.x.x · real defences · authorised scope
💼 Laptop (Ollama) + Hypervisor (OpenCode guest + Kali VM) + HTB subscription. That's the whole stack.
Section 4 — Architecture
Multi-Agent Framework
Operator Agent orchestrating 6 specialised sub-agents in parallel and serial chains
red-operator — Primary Agent (OpenCode)
↓   delegates to specialists   ↓
Recon

Passive intel · OSINT
Target enumeration

Scan

Active scanning
Service fingerprinting

Analysis

Output interpretation
Vulnerability mapping

Exploit

Controlled exploitation
Within defined scope

OSINT

Org intel
Employee enumeration

Report

Finding docs
Risk scoring · Narrative

PARALLEL: Recon + OSINT
SERIAL: Scan → Analysis → Exploit
TRIGGERED: Report on finding
Section 4 — Architecture
Think → Act → Observe
The autonomous reasoning loop — where scripted automation ends and actual reasoning begins
Think
Plan agent system prompt
"What does this mean tactically?
What is the optimal next action?"
→
Act
Call kali-mcp tool via MCP
run_nmap · execute_exploit
run_sqlmap · run_john
→
Observe
Capture structured output
Success → update world state
Failure → parse why → re-Think
↩
Self-Correction Example — Live EDR Bypass
1. Attempt standard credential dump (Mimikatz pattern)
2. Sophos EDR blocks → Access Denied — AMSI.PS.CredentialHarvesting.A
3. Agent reads error → identifies signature-based detection
4. Re-Think: "need fileless, memory-only, no PowerShell hooks"
5. Reflective in-memory .NET execution via kali-mcp → Success
~3s
full loop
zero humans
Section 4 — Architecture
The AI Red Team: Recon → Brain → C2
BloodHound maps the environment · LLM reasons · Havoc executes
BloodHound — The Mapper

Identity analysis tool using graph theory to reveal hidden AD relationships and attack paths. SharpHound collector → JSON → Neo4j graph model.

LLM (Ollama) — The Brain
AI

Interprets BloodHound graph output, identifies attack paths, formulates precise tool commands. Reasons about privilege relationships — GenericAll, DCSync, HasSession.

Havoc — The C2 Framework
Team Server
→
Demon

Modern malleable C2. Manages compromised hosts via Demon implants. Receives commands from LLM brain, executes against target, returns results.

THE AUTOMATED ATTACK CYCLE
1
Recon on Target
SharpHound collector executed. Gathers domain users, groups, sessions, GPOs.
BloodHound
→
2
Ingest & Analyse
JSON output uploaded to BloodHound GUI. Maps all relationships — MemberOf, AdminTo, HasSession.
BloodHound
→
3
Identify Attack Path
Cypher query finds: User Olivia has GenericAll over User Michael → path to Domain Admins.
LLM Reasons
→
4
LLM Tactical Decision
LLM interprets: GenericAll allows forced password reset or shadow credentials attack. Selects next action.
LLM Decides
→
5
Generate C2 Command
LLM formulates: PowerShell to reset Michael's password. Outputs precise Havoc task JSON.
Havoc
→
6
Execute via C2
Havoc Team Server relays command to Demon implant on compromised host. Result returned.
Havoc
→
7
Pivot & Repeat
Michael's account compromised. New privileges. Loop restarts — run SharpHound again, find new paths.
Loop ↺
Section 4 — Architecture
Operator Profiles
Tab to switch agents · different permission layer · zero code changes
CAPABILITY LEVEL — OpenCode frontmatter · Enforced per-agent
WHITE HAT
Recon + Scan only — no exploitation
GREY HAT
+ Vulnerability identification
RED OPERATOR
Full kill chain — no persistence
BLACK HAT
Unrestricted — lab demo only
# red-operator.md — .opencode/agents/ — permission enforced per-agent task: scope/recon/scan/analysis: allow task: exploit/post-exploit: ask # human gate bash: allow   edit: allow   webfetch: ask 🔒 temperature: 0.3   top_p: 0.90   steps: 60 task "*": 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 demo sudo openvpn ~/htb-lab.ovpn # verify tunnel ip addr show tun0 # confirm target reachable ping -c1 10.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
// Plan: "enumerate target" → Build: kali.run_nmap("-sV -sC 10.10.x.x")
2
Service version identified → CVE matched → initial foothold
// Plan: CVE analysis → exploit selection → Build fires kali-mcp
3
Web enumeration via run_gobuster → credentials or sensitive config found
// Plan: "enumerate web paths" → Build: kali.run_gobuster()
4
Privilege escalation path identified → lateral movement
// Plan reasons from context → selects privesc technique
5
run_john / run_hydra → hash cracking or credential bruteforce
// exploit:ask gate fires → operator approves → Build executes
6
Root / user flag captured on HTB machine — pwned
// 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-pacedAfter — Agentic
1 operator, 1 target at a time1 operator, N concurrent agent sessions
Parse every tool output manuallyOperator reviews decisions, not raw logs
Quality degrades under fatigue at 2amSame reasoning quality at 2am as at 9am
Manual documentation mid-engagementAgent logs every decision automatically
Recon-to-foothold: hours to daysRecon-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
Legacy Detection — Fragile
  • File hashes (mimikatz.exe) — agent uses in-memory variant
  • Static C2 domains/IPs — agent uses legitimate protocols
  • Specific PowerShell strings — indirect syscalls bypass this
  • Assumes attacker repeats identical behaviour. They won't.
Next-Gen Detection — Resilient
  • Anomalous graph/Cypher queries against AD topology
  • Unusual sequences of tool invocations over time
  • Behavioural chains: recon → cred access → lateral movement
  • Detect reasoning intent — not individual artifact signatures

"Does this sequence of behaviours, taken together, describe an adversarial campaign?"

🛡 If you're still detecting mimikatz.exe by file hash in 2025 — the agent already got Domain Admin and is writing the report.
Section 6 — Implications
The LLM OS — The Bigger Picture
This isn't a chatbot. It's the kernel process of an emerging operating system.
Context Window

= RAM
When it fills, reasoning degrades. Manage it like a finite resource, not an infinite buffer.

LLM
⚙
📱
🔍
Tool Arsenal

= Peripherals
kali-mcp, Telegram, BloodHound — hardware the kernel talks to via MCP drivers.

"We are no longer just running tools.
We are building autonomous systems that
navigate digital complexity at machine speed."
— Autonomous Offensive Reasoning Research
// WHAT THIS MEANS
  • Autonomous offense is here — running on commodity hardware, today
  • The operator is now the air traffic controller — not the pilot at the controls
  • The question is not can AI attack — it's who controls the AI doing the attacking
Section 7 — Close
How to Build Your Own
8 steps · commodity hardware · weekend project · everything is public
Build Order
01  Hypervisor (Type 1: Proxmox/ESXi, or Type 2: VirtualBox/VMware) + Kali VM (2 vCPU, 4GB RAM)
02  npm i -g opencode-ai → opencode available globally
03  kali-mcp: apt install mcp-kali-server (SSE :8000)
04  Ollama on laptop → ollama pull mistral
05  Wire kali-mcp as MCP in OpenCode config.json
06  Create aegis-x-agents.md → .opencode/agents/
07  systemctl enable opencode-web.service (:80)
08  Tab → red-operator → start session
⏱ Step 6 takes the longest. The agent is only as good as the doctrine you write for it.
Key Repos
github.com/0x4m4/hexstrike-ai
github.com/AIPentest/CyberStrikeAI
github.com/GH05TCREW/pentestagent
github.com/Roshu18/bearstrike-ai
github.com/portswigger/mcp-server
github.com/mukul975/anthropic-cybersecurity-skills
Minimum Hardware — Local AI

8GB RAM · 4GB VRAM GPU · 25GB storage · Type 1 or Type 2 hypervisor · 1 afternoon of your time

"The question is not whether this exists.
It does — right now, on commodity hardware,
in a home lab, running on a GTX 860M.

The question is: are you building it,
or waiting for someone else to
use it against your clients?"
THANK YOU
Q & A
Web

mohammeddanishamber.com

GitHub

github.com/mddanish

LinkedIn

/mohammed-danish-amber

// OpenCode Edition · aegis-x-agents.md · slides → mohammeddanishamber.com