Cybersecurity & AI Automation Wiki
An evolving knowledge base for 2026: AI-driven security, autonomous agents, offensive/defensive techniques, and the skills that land jobs.
Introduction
Cybersecurity in 2026 is no longer just firewalls and manual pentests — it is AI-native. Attackers use LLM agents to automate reconnaissance, phishing, and exploit development; defenders use the same technology to find bugs faster, triage alerts, and auto-generate reports.
This wiki bridges both worlds: core security fundamentals, the current AI security landscape, step-by-step guides to build your own AI agents on a local PC (auto-scan, auto-exploit, auto-report, social-media posting, PC voice control, WordPress writing), and a career roadmap.
The CIA Triad
Three pillars every security control — human or AI — ultimately protects:
Keep data secret
Only authorized parties read data. Controls: encryption, access control, MFA.
Keep data accurate
Prevent unauthorized alteration. Controls: hashing, digital signatures, checksums.
Keep data reachable
Systems accessible when needed. Controls: redundancy, load balancing, DDoS mitigation.
Best Practices
| Practice | Description |
|---|---|
| Least Privilege | Grant only the permissions needed for a task — applies to AI agents’ API keys and tool access too. |
| Defense in Depth | Layer controls so one failure doesn’t cause a breach. |
| MFA | Second factor beyond passwords to resist credential theft. |
| Patch Management | Apply security updates promptly. |
| Zero Trust | Verify every request; never trust by default. |
| Secure Coding | Validate input, parameterize queries, encode output. |
| AI Guardrails | Constrain agent tools, sandbox execution, log every action, and require human approval for destructive steps. |
State of AI Security in 2026
Updated Aug 2026The biggest shift in the last two years: security tooling moved from chatbots that suggest commands to autonomous agents that plan, execute, and verify. Research agents now complete real CTF/HTB challenges end-to-end with minimal human input.
Agentic exploit pipelines
Frameworks like MAPTA, xOffense, and RapidPen go from IP to validated shell with multi-agent orchestration.
LangGraph leads production
LangGraph 1.x (stateful graphs), CrewAI 1.14 (role-based), Microsoft Agent Framework 1.0, OpenAI Agents SDK. AutoGen is in maintenance mode.
Fully offline AI is mainstream
Ollama + quantized open models (Llama 3, Qwen3, DeepSeek) run on a gaming GPU or 32 GB RAM laptop.
A new attack surface
Prompt injection, data poisoning, and agent tool abuse are now tracked via OWASP Top 10 for LLMs and MITRE ATLAS.
AI Pentest & Security Tools (2026)
| Tool | Type | What it does |
|---|---|---|
MAPTA | Open-source multi-agent | Autonomous web app pentesting; 76.9% success on the XBOW benchmark (SSRF, IDOR, SSTI, SQLi). |
xOffense | Open-source multi-agent | Fine-tuned Qwen3-32B driving full pentest lifecycle; grey-box phase prompting. |
RapidPen | Open-source | Automated “IP-to-shell” penetration testing with LLM agents. |
ARACNE | Open-source | Autonomous shell/post-exploitation agent. |
PentestGPT | Open-source wrapper | GPT-driven guidance; you copy-paste terminal output manually. |
AutoPentester / VulnBot | Research | LLM agents with a Penetration Task Graph to plan multi-step attacks. |
Claude Code / Codex | Commercial agents | General coding agents that autonomously run pentest tooling when scoped. |
Garak | AI red-teaming | Scans LLM endpoints for prompt injection, jailbreaks, and data leakage. |
PyRIT | AI red-teaming | Microsoft’s framework for probing generative AI systems for risks. |
nuclei + AI templates | Scanner | LLM-assisted vulnerability template generation and triage. |
Reference list: the LLM4Pentest GitHub repository tracks dozens of research agents (PentestAgent, RefPentester, PENTESTAGENT, and more).
Attacking AI & LLM Systems
If you want to secure AI in 2026, learn the OWASP Top 10 for LLM Applications and the MITRE ATLAS matrix:
Prompt Injection
Overriding system instructions via user input or hidden web content the model reads.
Insecure Output Handling
LLM output flows unsanitized into SQL, shell, or HTML → classic injection chains.
Sensitive Information Disclosure
Models leak secrets, PII, or training data through crafted prompts.
Excessive Agency
Agents granted too much tool/API access cause harm autonomously.
Model / Data Poisoning
Corrupting training data or retrieval corpora to alter model behavior.
Adversarial ML
FGSM/PGD perturbations, model inversion, and membership inference on ML pipelines.
How to Build Your Own AI — Full Local PC Guide
You can run a full AI stack 100% offline on a mid-range PC. No cloud, no per-token cost, full privacy.
Step 1 — Hardware you need
| Model size | VRAM / RAM | Example hardware |
|---|---|---|
| 7–8B (fast, decent) | 8 GB VRAM / 16 GB RAM | RTX 3060, M1/M2 Mac |
| 14B (good reasoning) | 12–16 GB VRAM / 32 GB RAM | RTX 4070/4080 |
| 32B+ (best quality) | 24 GB VRAM / 64 GB RAM | RTX 4090, dual-GPU, Apple Silicon |
Step 2 — Install Ollama (easiest engine)
bash# Linux / WSL
curl -fsSL https://ollama.com/install.sh | sh
# Pull a general model + a reasoning model
ollama pull llama3.1
ollama pull qwen3:14b
ollama pull deepseek-r1:14b
# Chat in the terminal
ollama run llama3.1
Windows/macOS: download the installer from ollama.com. Alternative GUIs: LM Studio (beginner-friendly, port 1234) and Jan (offline/private). Ollama exposes an OpenAI-compatible API on http://localhost:11434.
Step 3 — Talk to it from Python
pythonimport ollama
resp = ollama.chat(
model="llama3.1",
messages=[{"role": "user", "content": "Explain the OWASP Top 10 for LLMs in 5 bullets"}],
)
print(resp["message"]["content"])
Step 4 — Give it memory & tools (make it an agent)
A “chatbot” becomes an agent when you add three things: tools (functions it can call), memory (conversation/state), and a loop (plan → act → observe → repeat). The sections below build real agents on exactly this pattern.
Step 5 — Pick an agent framework
| Framework | Best for | Language |
|---|---|---|
| LangGraph 1.x | Stateful, production graphs with checkpoints & human-in-the-loop | Python / TS |
| CrewAI 1.14 | Fast “team of specialists” role-based prototypes | Python |
| Microsoft Agent Framework 1.0 | Enterprise .NET/Azure; AutoGen’s successor | Python / .NET |
| OpenAI Agents SDK | Lightweight handoff-based agents | Python / TS |
| Smolagents | Code-first agents; auditable core (<1k LOC) | Python |
| Ollama + custom loop | Maximum control, no framework lock-in | Python |
bashpip install ollama langgraph langchain crewai smolagents openai-agents
Build an AI Agent for Auto-Scan / Find Bugs / Exploit / Report
This is a ReAct (Reason + Act) agent: the LLM decides which security tool to run, executes it, reads the output, and decides the next step — then writes a report. It uses a local Ollama model and standard tools.
TARGET to a machine you own (e.g., a local VM or a lab like HackTheBox/DVWA). Never point it at assets without written authorization.The agent
pythonimport subprocess, json, ollama, datetime
TARGET = "http://127.0.0.1:8080" # AUTHORIZED LAB TARGET ONLY
MODEL = "llama3.1"
def run(cmd, timeout=180):
"""Run a shell command safely and return trimmed output."""
try:
p = subprocess.run(cmd, shell=True, capture_output=True, text=True, timeout=timeout)
return (p.stdout or p.stderr or "(no output)")[-5000:]
except subprocess.TimeoutExpired:
return "[timeout]"
TOOLS = {
"nmap": lambda t: run(f"nmap -sV -sC -Pn {t}"),
"httpx": lambda t: run(f"httpx -u {t} -status-code -title -tech-detect -silent"),
"nuclei": lambda t: run(f"nuclei -u {t} -severity critical,high,medium -silent -no-color"),
"ffuf": lambda u: run(f"ffuf -u {u}/FUZZ -w /usr/share/seclists/Discovery/Web-Content/common.txt -mc 200,301 -s -t 40"),
"sqlmap": lambda u: run(f"sqlmap -u {u} --batch --level 1 --risk 1 --banner"),
"done": lambda r: r,
}
SYSTEM = f"""
You are an autonomous penetration-testing agent with authorized access to: {TARGET}.
Available tools: {', '.join(TOOLS)}.
Loop rules:
1. Reply ONLY with valid JSON: {{"tool": "name", "arg": "value"}} to run a tool.
2. When you have enough evidence, reply: {{"tool": "done", "arg": "your final report text"}}.
3. Chain results: recon -> enumerate -> test -> verify -> report.
4. Never target anything other than {TARGET}.
"""
def agent():
history = [{"role": "system", "content": SYSTEM}]
for step in range(12):
r = ollama.chat(model=MODEL, messages=history)
reply = r["message"]["content"].strip()
history.append({"role": "assistant", "content": reply})
try:
# tolerate markdown fences around the JSON
reply = reply.replace("```json","").replace("```","").strip()
action = json.loads(reply)
except Exception:
action = {"tool": "done", "arg": "Agent produced invalid JSON. Last reply:\n" + reply}
tool, arg = action["tool"], action["arg"]
if tool == "done":
return arg
out = TOOLS.get(tool, lambda a: f"[unknown tool {tool}]")(arg)
history.append({"role": "user", "content": f"tool {tool}({arg}) output:\n{out}"})
return "Agent reached step limit without a final report."
if __name__ == "__main__":
report = agent()
ts = datetime.datetime.now().strftime("%Y-%m-%d_%H%M%S")
path = f"pentest_report_{ts}.md"
open(path, "w").write(f"# Automated Pentest Report\n\nTarget: {TARGET}\n\n{report}\n")
print(f"[+] Report written to {path}")
Upgrade it to a multi-agent team
Recon & strategy
Reads scope, picks the attack surface, orders the tool sequence.
Enumeration
Runs nmap/nuclei/ffuf and summarizes findings.
Verification
Tests hypotheses with sqlmap, custom PoCs — only on authorized targets.
Write-up
Converts evidence into a CVSS-scored, remediation-ready report.
Tip: replace the single-loop above with CrewAI or LangGraph so each role is a separate agent with its own system prompt and memory. Add a human-in-the-loop gate before any exploit step.
Build an AI That Controls Your PC & Talks to You
A voice assistant that listens, understands intent via a local LLM, speaks back, and executes actions: shutdown, restart, open files, play videos, run web searches, or read today’s trading topics.
Install the pieces
bashpip install SpeechRecognition pyttsx3 pyaudio ollama yfinance feedparser requests
# Linux audio deps:
apt install portaudio19-dev espeak # pyttsx3 espeak for TTS
The assistant
pythonimport os, subprocess, webbrowser, speech_recognition as sr
import pyttsx3, ollama, yfinance as yf, feedparser, json
MODEL = "llama3.1"
def speak(text):
e = pyttsx3.init(); e.say(text); e.runAndWait()
def listen():
r = sr.Recognizer()
with sr.Microphone() as src:
r.adjust_for_ambient_noise(src)
print("Listening…")
audio = r.listen(src)
return r.recognize_google(audio) # swap with whisper for offline
def interpret(cmd_text):
"""Map natural language to a structured action via a local LLM."""
prompt = f'''Classify this command into JSON with keys: action, target.
Actions allowed: shutdown, restart, open_file, play_video, web_search, trading_topics, open_app, none.
Command: "{cmd_text}"
Reply with JSON only.'''
raw = ollama.chat(model=MODEL, messages=[{"role":"user","content":prompt}])
out = raw["message"]["content"].strip().replace("```json","").replace("```","")
try: return json.loads(out)
except Exception: return {"action":"none","target":""}
def trading_topics():
"""Pull today's trending tickers and market movers."""
rows = []
for sym in ["SPY","QQQ","NVDA","AAPL","TSLA","BTC-USD"]:
t = yf.Ticker(sym).fast_info
try: rows.append(f"{sym}: {t.last_price:.2f}")
except Exception: rows.append(f"{sym}: n/a")
return "Today's trading snapshot — " + ", ".join(rows)
def execute(act):
a, t = act["action"], act["target"]
if a == "shutdown": os.system("systemctl poweroff")
elif a == "restart": os.system("systemctl reboot")
elif a == "open_file": os.system(f'xdg-open "{t}"')
elif a == "play_video": webbrowser.open(f"https://www.youtube.com/results?search_query={t.replace(' ','+')}")
elif a == "web_search": webbrowser.open(f"https://www.google.com/search?q={t.replace(' ','+')}")
elif a == "trading_topics":
speak(trading_topics()); return
elif a == "open_app": os.system(f'xdg-open "{t}"')
else:
speak("I did not understand that command."); return
speak(f"Done: {a} {t}")
if __name__ == "__main__":
speak("Hi, I am your assistant. What do you need?")
while True:
try:
text = listen()
print("You said:", text)
if "exit" in text.lower() or "quit" in text.lower(): break
act = interpret(text)
execute(act)
except sr.UnknownValueError:
speak("Sorry, I did not catch that.")
except KeyboardInterrupt:
break
recognize_google with OpenAI Whisper running locally.Build an AI Agent That Writes WordPress Posts for More Reach
Uses the WordPress REST API (with an Application Password) plus a local LLM to research a keyword, draft an SEO-optimized post, add tags/categories, and publish on a schedule.
Enable API access
- WordPress → Users → Profile → Application Passwords → generate one.
- Keep
WP_URL,WP_USER,WP_APP_PASSWORDin env vars.
The writer agent
pythonimport os, requests, ollama
WP = os.environ["WP_URL"].rstrip("/")
AUTH = (os.environ["WP_USER"], os.environ["WP_APP_PASSWORD"])
def research(keyword):
"""Have the LLM outline SEO structure: title, headings, keywords, meta."""
prompt = f'''You are an SEO expert. For the keyword "{keyword}",
return JSON: {{"title","slug","excerpt","tags":[],"categories":[ids],
"body_markdown","meta_description","focus_keyword"}}. Write a full 800-word article.'''
r = ollama.chat(model="llama3.1", messages=[{"role":"user","content":prompt}])
import json
return json.loads(r["message"]["content"].strip().replace("```json","").replace("```",""))
def publish(article, status="draft"):
data = {
"title": article["title"],
"slug": article["slug"],
"excerpt": article["excerpt"],
"content": article["body_markdown"], # enable a markdown plugin or convert to HTML
"status": status,
"tags": article.get("tags", []),
"categories": article.get("categories", []),
"meta": {"rank_math_focus_keyword": article.get("focus_keyword","")},
}
r = requests.post(f"{WP}/wp-json/wp/v2/posts", auth=AUTH, json=data)
r.raise_for_status()
return r.json()["link"]
if __name__ == "__main__":
art = research("cybersecurity career roadmap 2026")
link = publish(art, status="draft") # review before switching to "publish"
print("Draft created:", link)
Maximize reach
- Schedule a batch of keyword drafts weekly; review and publish on a calendar.
- SEO plugins (Rank Math / Yoast) read the
metafields you set above. - Internal linking — prompt the LLM to link 3 older posts in each new article.
- Repurpose — feed the same draft to the social-media agent to auto-post snippets everywhere.
- Indexing — ping Google Search Console / Bing Webmaster after publishing.
Web Attacks
SQL Injection
Manipulating DB queries via unsanitized input to read, modify, or delete data.
XSS
Injecting client-side scripts to steal sessions or deface pages.
Command Injection
Executing OS commands on the server through vulnerable input.
CSRF
Forcing a logged-in user’s browser to perform unwanted actions.
IDOR
Accessing objects by predictable identifiers without authorization checks.
Server-Side Request Forgery
Forcing the server to fetch internal/external resources on your behalf.
XXE
Abusing XML parsers with external entities to read files or trigger SSRF.
Insecure Deserialization
Unserialized data triggers RCE, privilege escalation, or DoS.
Path Traversal
Using ../ to read files outside the intended directory.
Network Attacks
DDoS
Overwhelming a service with traffic from many sources.
MITM
Intercepting/altering traffic between two parties (ARP spoofing).
DNS Spoofing
Corrupting resolution to redirect victims to attacker hosts.
Credential Sniffing
Capturing unencrypted credentials; mitigated by TLS.
Social Engineering
Phishing
Mass emails impersonating trusted entities to harvest credentials.
Spear Phishing
Highly targeted phishing with personalized context.
Pretexting
Inventing a scenario to trick a victim into revealing info.
Tailgating
Following an authorized person into a restricted area.
Deepfake & vishing
LLM-generated voice/email at scale dramatically lowers phishing cost.
Malware
Ransomware
Encrypts files and demands payment for the key.
Trojan
Malware disguised as legitimate software.
Worm
Self-replicating malware spreading across networks.
Rootkit
Hides presence and grants persistent privileged access.
Keylogger
Records keystrokes to capture credentials.
Polymorphic malware
LLMs generate novel variants to evade signature-based AV.
Skills & Knowledge for the Future (2026+)
Companies now hire for AI security engineers and security automation engineers alongside traditional roles. The winning combination is classic security depth + AI fluency.
Networking & OS
TCP/IP, DNS, HTTP, Linux, Windows internals — still the foundation.
Programming
Python (mandatory), plus Bash/PowerShell, and reading JS/Go/C.
Web & API security
OWASP Top 10, authN/authZ, API testing, cloud (AWS/Azure/GCP).
ML fundamentals
How models train/infer; adversarial attacks (FGSM, PGD, model inversion).
LLM security
OWASP Top 10 for LLMs, prompt injection, RAG poisoning, agent tool abuse.
Agent engineering
Build/orchestrate agents (LangGraph, CrewAI), tool calling, MCP, evals.
Exploitation
Recon → enumeration → exploitation → post-exploitation, with real tools.
Detection & response
SIEM, threat hunting, MITRE ATT&CK, incident response.
Reporting & communication
Turning technical findings into business-risk reports.
Career Roadmap & Certifications
Job-ready checklist
| Skill | How to prove it |
|---|---|
| Web/API pentesting | Completed PortSwigger labs + a written report on a real bug you found. |
| Scripting/automation | Public GitHub with your pentest + social + WordPress agents. |
| LLM security | Prompt-injection PoCs, Garak scans, a blog post on your findings. |
| Cloud security | Configured AWS IAM/S3 hardening in a lab. |
| Communication | CVSS-scored, remediation-ready sample reports. |
Common Tools
| Tool | Category | Purpose |
|---|---|---|
nmap | Recon | Port scanning and service fingerprinting. |
nuclei | Scanner | Template-based vulnerability scanning. |
Burp Suite | Web | Intercepting proxy and web vuln testing. |
sqlmap | Web | Automated SQL injection detection/exploitation. |
ffuf / gobuster | Web | Directory and virtual-host brute-forcing. |
Metasploit | Exploit | Exploitation and post-exploitation framework. |
Wireshark | Network | Packet capture and protocol analysis. |
Hydra | Credential | Online brute-force and dictionary attacks. |
John / Hashcat | Credential | Offline password hash cracking. |
Ollama | AI | Run local LLMs for agents and automation. |
Garak / PyRIT | AI | Red-teaming LLM applications. |
Frameworks & Standards
MITRE ATT&CK
Adversary tactics/techniques/procedures for threat modeling.
MITRE ATLAS
The ATT&CK equivalent for AI/ML system threats.
OWASP Top 10
Most critical web app risks.
OWASP Top 10 for LLMs
Prompt injection, output handling, excessive agency, and more.
NIST CSF
Framework for managing cybersecurity risk.
ISO/IEC 27001
Information security management systems.
CVSS
Vulnerability severity scoring (0–10).
Build an Agent That Auto-Posts to All Social Media
One agent that drafts platform-optimized copy with a local LLM, then publishes to every platform through their APIs. Store credentials in environment variables, never in code.
Adapter pattern (one interface, many platforms)