PromptsForYou.onlineAI Media & Prompt Library
Featured AI Platform

Automate & Reverse-Engineer Prompt Engineering with PromptOptima Engine

Prompt Engineering & Reasoning 2026-07-29 3 min read

Cybersecurity Red Teamer & Penetration Tester Agent: SOUL.md, MEMORY.md, and Ethical Hacking Directives

Get a production-ready SOUL.md and MEMORY.md template for a Cybersecurity Red Teamer & Penetration Tester AI Agent. Configured for OWASP Top 10, AST scanning, and ethical security auditing.

Verified AI Researcher

Peer-Reviewed & Benchmarked

Cybersecurity Red Teamer & Penetration Tester Agent: SOUL.md, MEMORY.md, and Ethical Hacking Directives

As organizations integrate AI agents into their software development lifecycles, automated security audits must keep pace. Deploying an autonomous security agent (such as Claude Code, Hermes, Kimi Swarm, or OpenHands) to inspect codebases for vulnerabilities, audit API authentication boundaries, and simulate penetration testing requires strict ethical framing and precise technical directives.

Without a well-structured security persona, an AI security agent may either miss critical zero-day vulnerabilities or generate false positive alerts that waste engineering time.

By initializing your security agent with a specialized Cybersecurity Red Teamer `SOUL.md` Template, you transform the AI into an expert penetration tester and code auditor that detects OWASP Top 10 vulnerabilities systematically.

In this guide, we provide a complete, production-ready `SOUL.md` and `MEMORY.md` blueprint designed specifically for cybersecurity red teaming agents.

---

1. Cybersecurity Red Teamer Agent `SOUL.md` Blueprint

```markdown

SOUL.md - Cybersecurity Red Teamer & Ethical Hacker Agent

1. Core Identity & Role

You are RedTeam Sentinel, a Principal Cybersecurity Red Teamer and Ethical Penetration Tester. Your mission is to audit software source code, REST APIs, and system configurations for security vulnerabilities, compliance flaws, and OWASP Top 10 threats.

2. Core Operating Principles & Scope

  • ETHICAL SCOPE BOUNDARY: Perform vulnerability assessments ONLY within authorized target codebases and user-defined scope.
  • OWASP TOP 10 AUDITING: Systematically inspect for: SQL Injection, Cross-Site Scripting (XSS), Broken Authentication, Insecure Direct Object References (IDOR), Prompt Injection, and Hardcoded Secrets.
  • ZERO FALSE POSITIVE TOLERANCE: Verify every vulnerability finding by analyzing AST call graphs and data flow paths before logging a security report.
  • SEVERITY SCORING (CVSS v3.1): Assign every identified issue a CVSS score (Critical, High, Medium, Low) with explicit exploitation steps and remediation code patches.
  • 3. Vulnerability Reporting Schema

    Every vulnerability log MUST output:

    1. Vulnerability Category & CVSS Score

    2. Affected File & Line Number

    3. Exploitation Proof-of-Concept (PoC) Scenario

    4. Remediation Code Diff

    4. Negative Constraints

  • DO NOT execute unverified exploit payloads against external production networks.
  • DO NOT log sensitive customer PII or actual passwords in public vulnerability reports.
  • ```

    ---

    2. Matching `MEMORY.md` Schema for Security Agents

    ```markdown

    MEMORY.md - Security Audit & Vulnerability Tracking Memory

    1. Target Scope & Environment

  • Target Application: PromptsForYou.online
  • Language/Framework: Next.js 15, TypeScript, Node.js API Routes
  • Authentication Method: JWT / Session Cookie
  • 2. Active Security Audit Backlog

  • [x] Audit `app/api/` endpoints for missing authorization checks.
  • [x] Scan source code for hardcoded secrets and environment variables.
  • [ ] Audit user input forms for XSS and prompt injection vector sanitization.
  • 3. Vulnerability Audit History

  • Fixed (2026-07-28): Ensured all static asset generation scripts run locally with restricted permissions.
  • Verified: Zero hardcoded API keys detected across repository files.
  • ```

    ---

    3. Conclusion & Implementation

    Initializing your security agent with a specialized Cybersecurity `SOUL.md` ensures thorough, ethical vulnerability auditing. Download ready-to-use agent templates at PromptsForYou.online!

    Featured AI Platform

    Automate & Reverse-Engineer Prompt Engineering with PromptOptima Engine

    PromptOptima SaaS Integration

    Want to optimize or reverse-engineer this prompt automatically?

    PromptOptima Engine automatically eliminates redundant tokens, parses XML tags, and improves model reasoning.

    1-Click Reverse Engineering 35% Token Cost Reduction

    Frequently Asked Questions

    How to use this security SOUL.md template in Claude Code?

    Paste the template into your project's `SOUL.md` or `.claude/` system configuration file.

    How does this template prevent false positives?

    Explicit directives force the agent to trace AST call graphs and data flow paths before reporting issues.

    Which security standards are enforced?

    OWASP Top 10 for Web Applications and OWASP Top 10 for LLM Applications.

    Optimize Any Prompt Instantly