by santosomar
Hands-on code, labs, and reference material by Omar Santos for building, securing, and operating AI agents in cybersecurity.
# Add to your Claude Code skills
git clone https://github.com/santosomar/AI-agents-for-cybersecurityGuides for using ai agents skills like AI-agents-for-cybersecurity.
AI-agents-for-cybersecurity is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by santosomar. Hands-on code, labs, and reference material by Omar Santos for building, securing, and operating AI agents in cybersecurity. It has 276 GitHub stars.
AI-agents-for-cybersecurity's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/santosomar/AI-agents-for-cybersecurity" and add it to your Claude Code skills directory (see the Installation section above).
AI-agents-for-cybersecurity is primarily written in Python. It is open-source under santosomar on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh AI-agents-for-cybersecurity against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Hands-on code, labs, and reference material by Omar Santos for building, securing, and operating AI agents in cybersecurity.
This is the companion repository for several of Omar's training programs and publications:
[!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.
# 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.
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 switchThis repository provides a structured learning journey covering cutting-edge AI agent technologies and their applications in cybersecurity operations.
chat_model_basic.py)chatbot_example.py)embeddings/)
huggingface_example.py)ollama/)chunking_and_images.md)basic_rag_part1.py, basic_rag_part2.py)basic_rag_part3.py)text_splitting_deep_dive.py)embedding_deep_dive.py)web_scrape_basic.py)utils/embedding_cost_calculator.py)basic_agent_and_tools.py)basic_agent_and_tools_scanner.py)agent_deep_dive/agent_chat.py)agent_deep_dive/agent_docstore.py)langgraph/)
agentic_rag/)asm_example/)crewai_example/)deepagents_example/)mcp_servers_examples/)What each framework is, where it helps a security team, where it should stay out, and how to harden it. The overview also includes a side-by-side comparison, a "which one for which job" guide, a map of the 2026 CVEs and supply-chain incidents, and lab exercises:
openclaw/)hermes/)agent_zero/)openhands/)paperclip/)buzz/)Where the money goes in an agent, and the metric that matters (cost per accepted outcome, not cost per token):
01_context_growth.py)02_prompt_caching.py, 03_live_cache_check.py)