Reverse engineer anything with agents, from app behavior down to native binaries.
AI agents for cybersecurity
Hands-on code, labs, and reference material by Omar Santos for building, securing, and operating AI agents in cybersecurity.
Install: git clone https://github.com/santosomar/AI-agents-for-cybersecurity
Install
git clone https://github.com/santosomar/AI-agents-for-cybersecurityInstall command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub →AI Agents for Cybersecurity
Hands-on code, labs, and reference material by Omar Santos for building, securing, and operating AI agents in cybersecurity.
Where this repository is used
This is the companion repository for several of Omar's training programs and publications:
- Pearson live trainings: instructor-led sessions on AI agents, agentic AI security, RAG, and MCP
- Video courses: on-demand courses from Pearson and on the O'Reilly learning platform
- O'Reilly live events: live courses and workshops on the O'Reilly platform
- Books: code examples and labs referenced in several of Omar's books on AI and cybersecurity
[!TIP] Coming from a Pearson live training, video course, O'Reilly event, or book? Each part below maps to a module or chapter, and the scripts stand alone, so you can jump straight to the part you need. The code here may be newer than the recording or printed edition; this repository is the current version.
Quick start
# Python 3.13+ and uv are required
uv sync --python python3.13
# Smoke-test the environment (runs offline)
uv run python part1_foundational_topics/huggingface_example.py
# Most other scripts need an OpenAI API key in your environment or a local .env file
export OPENAI_API_KEY="your-key-here"
Never commit API keys. .env is already in .gitignore.
Repository structure
The repository is structured with eight parts covering the spectrum from basic AI concepts to a specification for coordinating specialist agents through an authorized security assessment:
part1_foundational_topics/: Foundational examples covering chat models, embeddings (with TensorFlow Projector visualization), interactive chatbots, and integration with various model providers (OpenAI, Hugging Face, Ollama)part2_prompt_templates/: Advanced prompt engineering techniques, template systems, and structured prompting strategies for cybersecurity applicationspart3_prompt_chaining/: Sophisticated prompt chaining workflows using LangChain Expression Language (LCEL), including branching chains, parallel processing, and conditional logic for security incident analysis and threat huntingpart4_rag_examples/: Comprehensive Retrieval Augmented Generation implementations with vector databases (Chroma), text splitting strategies, embedding comparisons, metadata handling, and web scrapingpart5_agents_and_mcp_servers/: Advanced AI agents, tools integration, LangGraph workflows, agentic RAG, and Model Context Protocol (MCP) implementations for cybersecurity automationpart6_agentic_frameworks/: Security-team guides to six ready-made agentic frameworks (OpenClaw, Hermes, Agent Zero, OpenHands, Paperclip, Buzz): what each is, where it helps, and where it should stay outpart7_tokenomics/: What agents cost to run and how to measure it: context compounding, prompt caching, model routing, compaction, tool-schema overhead, batch processing, per-task budgets, and cost per accepted outcomepart8_multi-agent_harness_spec/: A vendor-neutral design specification (not runnable code) for a supervisor-led, human-gated security-assessment harness: scope, evidence, approval gates, and a kill switch
Similar plugs
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype…
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io