Skip to content
This repository was archived by the owner on Jun 17, 2026. It is now read-only.

Commit e563f69

Browse files
committed
Rebuilt Infosec agent as a LangGraph supervisor pattern
1 parent 3150a80 commit e563f69

14 files changed

Lines changed: 662 additions & 0 deletions

File tree

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
{
2+
"type": "supervisor",
3+
"pattern": "supervisor",
4+
"name": "Information Security AI Assistant",
5+
"description": "Advanced information security AI with specialized agent coordination using LangGraph Supervisor pattern",
6+
"icon": "🛡️",
7+
"subtitle": "LangGraph Supervisor | Powered by MindHive.tech",
8+
"systemPrompt": "You are an information security supervisor agent that coordinates four specialized security experts. Analyze incoming questions and intelligently route them to the most appropriate specialist based on the topic, complexity, and required expertise.\n\nYour specialists include:\n- Judge: Vulnerability assessment and compliance frameworks\n- Lancer: Red teaming, penetration testing, and offensive security\n- Scout: Network, endpoint, resource, and application discovery and fingerprinting\n- Shield: Blue teaming, incident response, and active defense\n\nMake intelligent routing decisions and coordinate responses for comprehensive security guidance.",
9+
"placeholder": "Ask any information security question...",
10+
"examples": [
11+
"What are the OWASP Top 10 vulnerabilities?",
12+
"How do I perform reconnaissance on a target network?",
13+
"What tools should I use for network discovery?",
14+
"How do I respond to a ransomware attack?",
15+
"What are the SOC 2 compliance requirements?"
16+
],
17+
"aiLabel": "InfoSec Supervisor",
18+
"footer": "Built with LangGraph and Cloudflare Workers AI | MindHive.tech",
19+
"domain": "infosec.mindhive.tech",
20+
"accountId": "82d842d586a0298981ab28617ec8ac66",
21+
"zoneId": "4f8b8a0bd742d7872f75b8144b3851f8",
22+
"model": "@cf/meta/llama-3.1-8b-instruct",
23+
"maxTokens": 1024,
24+
"temperature": 0.4,
25+
"maxIterations": 8,
26+
"cacheEnabled": true,
27+
"cacheTTL": 3600,
28+
"useLangchain": true,
29+
"agents": [
30+
{
31+
"name": "judge",
32+
"expertise": "Vulnerability assessment, CVE analysis, compliance frameworks (SOC 2, GDPR, HIPAA, PCI-DSS, ISO 27001, NIST), security auditing, and regulatory requirements",
33+
"description": "Expert in vulnerability scoring, compliance requirements, and security assessment methodologies",
34+
"specializes_in": [
35+
"CVE analysis and CVSS scoring",
36+
"Compliance frameworks and auditing",
37+
"Vulnerability scanning and assessment",
38+
"Security controls and requirements",
39+
"Risk assessment and gap analysis"
40+
]
41+
},
42+
{
43+
"name": "lancer",
44+
"expertise": "Red teaming, penetration testing, exploit development, social engineering, privilege escalation, and offensive security techniques",
45+
"description": "Specialist in offensive security, ethical hacking, and penetration testing methodologies",
46+
"specializes_in": [
47+
"Penetration testing methodologies (OWASP, NIST, PTES)",
48+
"Exploit development and payload creation",
49+
"Social engineering and phishing campaigns",
50+
"Privilege escalation techniques",
51+
"Red team operations and adversary simulation"
52+
]
53+
},
54+
{
55+
"name": "scout",
56+
"expertise": "Network discovery, port scanning, service enumeration, application fingerprinting, OSINT gathering, and reconnaissance techniques",
57+
"description": "Expert in reconnaissance, discovery, and information gathering across networks and applications",
58+
"specializes_in": [
59+
"Network mapping and port scanning (Nmap, Masscan)",
60+
"Service enumeration and banner grabbing",
61+
"Web application discovery and crawling",
62+
"OSINT techniques and passive reconnaissance",
63+
"Asset discovery and inventory management"
64+
]
65+
},
66+
{
67+
"name": "shield",
68+
"expertise": "Blue teaming, incident response, threat hunting, SOC operations, SIEM management, and defensive security measures",
69+
"description": "Specialist in defensive security, incident response, and proactive threat detection",
70+
"specializes_in": [
71+
"Incident response procedures and playbooks",
72+
"Threat hunting methodologies and techniques",
73+
"SIEM rule development and tuning",
74+
"Digital forensics and malware analysis",
75+
"SOC operations and monitoring strategies"
76+
]
77+
}
78+
],
79+
"keywords": [
80+
"security", "infosec", "cybersecurity", "vulnerability", "compliance",
81+
"pentest", "red team", "exploit", "reconnaissance", "discovery",
82+
"blue team", "incident", "response", "defense", "monitoring"
83+
],
84+
"patterns": [
85+
"\\b(security|infosec|cybersecurity)\\b",
86+
"\\b(vulnerability|exploit|CVE)\\b",
87+
"\\b(compliance|audit|framework)\\b",
88+
"\\b(pentest|penetration|red.?team)\\b",
89+
"\\b(reconnaissance|discovery|enumeration)\\b",
90+
"\\b(blue.?team|incident|response|defense)\\b"
91+
]
92+
}
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
{
2+
"type": "supervisor",
3+
"pattern": "supervisor",
4+
"name": "Information Security AI Assistant",
5+
"description": "Advanced information security AI with specialized agent coordination using LangGraph Supervisor pattern",
6+
"icon": "🛡️",
7+
"subtitle": "LangGraph Supervisor | Powered by MindHive.tech",
8+
"systemPrompt": "You are an information security supervisor agent that coordinates four specialized security experts. Analyze incoming questions and intelligently route them to the most appropriate specialist based on the topic, complexity, and required expertise.\n\nYour specialists include:\n- Judge: Vulnerability assessment and compliance frameworks\n- Lancer: Red teaming, penetration testing, and offensive security\n- Scout: Network, endpoint, resource, and application discovery and fingerprinting\n- Shield: Blue teaming, incident response, and active defense\n\nMake intelligent routing decisions and coordinate responses for comprehensive security guidance.",
9+
"placeholder": "Ask any information security question...",
10+
"examples": [
11+
"What are the OWASP Top 10 vulnerabilities?",
12+
"How do I perform reconnaissance on a target network?",
13+
"What tools should I use for network discovery?",
14+
"How do I respond to a ransomware attack?",
15+
"What are the SOC 2 compliance requirements?"
16+
],
17+
"aiLabel": "InfoSec Supervisor",
18+
"footer": "Built with LangGraph and Cloudflare Workers AI | MindHive.tech",
19+
"domain": "infosec.mindhive.tech",
20+
"accountId": "82d842d586a0298981ab28617ec8ac66",
21+
"zoneId": "4f8b8a0bd742d7872f75b8144b3851f8",
22+
"model": "@cf/meta/llama-3.1-8b-instruct",
23+
"maxTokens": 1024,
24+
"temperature": 0.4,
25+
"maxIterations": 8,
26+
"cacheEnabled": true,
27+
"cacheTTL": 3600,
28+
"useLangchain": true,
29+
"agents": [
30+
{
31+
"name": "judge",
32+
"expertise": "Vulnerability assessment, CVE analysis, compliance frameworks (SOC 2, GDPR, HIPAA, PCI-DSS, ISO 27001, NIST), security auditing, and regulatory requirements",
33+
"description": "Expert in vulnerability scoring, compliance requirements, and security assessment methodologies",
34+
"specializes_in": [
35+
"CVE analysis and CVSS scoring",
36+
"Compliance frameworks and auditing",
37+
"Vulnerability scanning and assessment",
38+
"Security controls and requirements",
39+
"Risk assessment and gap analysis"
40+
]
41+
},
42+
{
43+
"name": "lancer",
44+
"expertise": "Red teaming, penetration testing, exploit development, social engineering, privilege escalation, and offensive security techniques",
45+
"description": "Specialist in offensive security, ethical hacking, and penetration testing methodologies",
46+
"specializes_in": [
47+
"Penetration testing methodologies (OWASP, NIST, PTES)",
48+
"Exploit development and payload creation",
49+
"Social engineering and phishing campaigns",
50+
"Privilege escalation techniques",
51+
"Red team operations and adversary simulation"
52+
]
53+
},
54+
{
55+
"name": "scout",
56+
"expertise": "Network discovery, port scanning, service enumeration, application fingerprinting, OSINT gathering, and reconnaissance techniques",
57+
"description": "Expert in reconnaissance, discovery, and information gathering across networks and applications",
58+
"specializes_in": [
59+
"Network mapping and port scanning (Nmap, Masscan)",
60+
"Service enumeration and banner grabbing",
61+
"Web application discovery and crawling",
62+
"OSINT techniques and passive reconnaissance",
63+
"Asset discovery and inventory management"
64+
]
65+
},
66+
{
67+
"name": "shield",
68+
"expertise": "Blue teaming, incident response, threat hunting, SOC operations, SIEM management, and defensive security measures",
69+
"description": "Specialist in defensive security, incident response, and proactive threat detection",
70+
"specializes_in": [
71+
"Incident response procedures and playbooks",
72+
"Threat hunting methodologies and techniques",
73+
"SIEM rule development and tuning",
74+
"Digital forensics and malware analysis",
75+
"SOC operations and monitoring strategies"
76+
]
77+
}
78+
],
79+
"keywords": [
80+
"security", "infosec", "cybersecurity", "vulnerability", "compliance",
81+
"pentest", "red team", "exploit", "reconnaissance", "discovery",
82+
"blue team", "incident", "response", "defense", "monitoring"
83+
],
84+
"patterns": [
85+
"\\b(security|infosec|cybersecurity)\\b",
86+
"\\b(vulnerability|exploit|CVE)\\b",
87+
"\\b(compliance|audit|framework)\\b",
88+
"\\b(pentest|penetration|red.?team)\\b",
89+
"\\b(reconnaissance|discovery|enumeration)\\b",
90+
"\\b(blue.?team|incident|response|defense)\\b"
91+
]
92+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export CLOUDFLARE_API_TOKEN=your-token-here
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
agent_framework/
2+
*.pyc
3+
__pycache__/
4+
.env
5+
.env.local
6+
*.log
7+
.wrangler/
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Information Security AI Assistant
2+
3+
Advanced information security AI with specialized agent coordination using LangGraph Supervisor pattern
4+
5+
🔗 **Live Demo**: https://infosec.mindhive.tech
6+
7+
## Features
8+
9+
- 🐍 Python-powered AI agent using Cloudflare Workers
10+
- ⚡ Specialized expertise
11+
- 💾 Response caching for improved performance
12+
- 🎨 Clean, professional web interface
13+
- 📡 RESTful API endpoint
14+
- 🔌 MCP server interface for agent-to-agent communication
15+
- 🚀 Fast cold starts with Pyodide optimization
16+
17+
## Configuration
18+
19+
This Python agent was generated from configuration with the following settings:
20+
21+
- **Type**: supervisor
22+
- **Language**: Python 🐍
23+
- **Model**: @cf/meta/llama-3.1-8b-instruct
24+
- **Max Tokens**: 1024
25+
- **Temperature**: 0.4
26+
- **Cache TTL**: 3600 seconds
27+
28+
## Deployment
29+
30+
1. Set your Cloudflare API token:
31+
```bash
32+
export CLOUDFLARE_API_TOKEN="your-token-here"
33+
```
34+
35+
2. Deploy:
36+
```bash
37+
./scripts/deploy.sh
38+
```
39+
40+
## Example Questions
41+
42+
- What are the OWASP Top 10 vulnerabilities?
43+
- How do I perform reconnaissance on a target network?
44+
- What tools should I use for network discovery?
45+
- How do I respond to a ransomware attack?
46+
- What are the SOC 2 compliance requirements?
47+
48+
---
49+
50+
*Generated by Python Agent Framework v1.0 🐍*
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#!/bin/bash
2+
3+
# Colors for output
4+
RED='\033[0;31m'
5+
GREEN='\033[0;32m'
6+
YELLOW='\033[1;33m'
7+
NC='\033[0m' # No Color
8+
9+
echo -e "${YELLOW}Information Security AI Assistant Deployment${NC}"
10+
echo "================================================"
11+
12+
# Check if CLOUDFLARE_API_TOKEN is set
13+
if [ -z "$CLOUDFLARE_API_TOKEN" ]; then
14+
echo -e "${RED}ERROR: CLOUDFLARE_API_TOKEN environment variable is required${NC}"
15+
exit 1
16+
fi
17+
18+
ACCOUNT_ID="82d842d586a0298981ab28617ec8ac66"
19+
SCRIPT_NAME="infosec"
20+
ZONE_ID="4f8b8a0bd742d7872f75b8144b3851f8"
21+
22+
echo -e "\n${YELLOW}Deploying Python Worker to Cloudflare...${NC}"
23+
24+
if command -v wrangler &> /dev/null; then
25+
npx wrangler@latest deploy
26+
27+
if [ $? -eq 0 ]; then
28+
echo -e "${GREEN}✓ Python Worker deployed successfully${NC}"
29+
echo ""
30+
echo "Your Python agent is now available at:"
31+
echo -e "${YELLOW}https://infosec.mindhive.tech${NC}"
32+
echo ""
33+
echo "🐍 Python Workers Features:"
34+
echo "• Standard library support in production"
35+
echo "• Cloudflare AI and KV bindings"
36+
echo "• MCP server interface"
37+
echo "• Fast cold starts with Pyodide"
38+
else
39+
echo -e "${RED}✗ Failed to deploy Worker${NC}"
40+
exit 1
41+
fi
42+
else
43+
echo -e "${RED}Wrangler not found. Please install: npm install -g wrangler${NC}"
44+
exit 1
45+
fi
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# Auto-generated supervisor agent
2+
# Generated from configuration at 2025-07-30T23:26:50.138189
3+
4+
from agent_framework.langgraph_agent import LangGraphAgent
5+
6+
# Configuration for Information Security AI Assistant
7+
config = {
8+
'type': 'supervisor',
9+
'name': 'Information Security AI Assistant',
10+
'description': 'Advanced information security AI with specialized agent coordination using LangGraph Supervisor pattern',
11+
'icon': '🛡️',
12+
'subtitle': 'LangGraph Supervisor | Powered by MindHive.tech',
13+
'systemPrompt': """You are an information security supervisor agent that coordinates four specialized security experts. Analyze incoming questions and intelligently route them to the most appropriate specialist based on the topic, complexity, and required expertise.
14+
15+
Your specialists include:
16+
- Judge: Vulnerability assessment and compliance frameworks
17+
- Lancer: Red teaming, penetration testing, and offensive security
18+
- Scout: Network, endpoint, resource, and application discovery and fingerprinting
19+
- Shield: Blue teaming, incident response, and active defense
20+
21+
Make intelligent routing decisions and coordinate responses for comprehensive security guidance.""",
22+
'placeholder': 'Ask any information security question...',
23+
'examples': ["What are the OWASP Top 10 vulnerabilities?", "How do I perform reconnaissance on a target network?", "What tools should I use for network discovery?", "How do I respond to a ransomware attack?", "What are the SOC 2 compliance requirements?"],
24+
'aiLabel': 'InfoSec Supervisor',
25+
'footer': 'Built with LangGraph and Cloudflare Workers AI | MindHive.tech',
26+
'domain': 'infosec.mindhive.tech',
27+
'model': '@cf/meta/llama-3.1-8b-instruct',
28+
'maxTokens': 1024,
29+
'temperature': 0.4,
30+
'cacheEnabled': true,
31+
'cacheTTL': 3600,
32+
'pattern': 'supervisor',
33+
'maxIterations': 8,
34+
'agents': [
35+
{
36+
"name": "judge",
37+
"expertise": "Vulnerability assessment, CVE analysis, compliance frameworks (SOC 2, GDPR, HIPAA, PCI-DSS, ISO 27001, NIST), security auditing, and regulatory requirements",
38+
"description": "Expert in vulnerability scoring, compliance requirements, and security assessment methodologies",
39+
"specializes_in": [
40+
"CVE analysis and CVSS scoring",
41+
"Compliance frameworks and auditing",
42+
"Vulnerability scanning and assessment",
43+
"Security controls and requirements",
44+
"Risk assessment and gap analysis"
45+
]
46+
},
47+
{
48+
"name": "lancer",
49+
"expertise": "Red teaming, penetration testing, exploit development, social engineering, privilege escalation, and offensive security techniques",
50+
"description": "Specialist in offensive security, ethical hacking, and penetration testing methodologies",
51+
"specializes_in": [
52+
"Penetration testing methodologies (OWASP, NIST, PTES)",
53+
"Exploit development and payload creation",
54+
"Social engineering and phishing campaigns",
55+
"Privilege escalation techniques",
56+
"Red team operations and adversary simulation"
57+
]
58+
},
59+
{
60+
"name": "scout",
61+
"expertise": "Network discovery, port scanning, service enumeration, application fingerprinting, OSINT gathering, and reconnaissance techniques",
62+
"description": "Expert in reconnaissance, discovery, and information gathering across networks and applications",
63+
"specializes_in": [
64+
"Network mapping and port scanning (Nmap, Masscan)",
65+
"Service enumeration and banner grabbing",
66+
"Web application discovery and crawling",
67+
"OSINT techniques and passive reconnaissance",
68+
"Asset discovery and inventory management"
69+
]
70+
},
71+
{
72+
"name": "shield",
73+
"expertise": "Blue teaming, incident response, threat hunting, SOC operations, SIEM management, and defensive security measures",
74+
"description": "Specialist in defensive security, incident response, and proactive threat detection",
75+
"specializes_in": [
76+
"Incident response procedures and playbooks",
77+
"Threat hunting methodologies and techniques",
78+
"SIEM rule development and tuning",
79+
"Digital forensics and malware analysis",
80+
"SOC operations and monitoring strategies"
81+
]
82+
}
83+
],
84+
'useLangchain': true
85+
}
86+
87+
# Create the supervisor agent
88+
informationsecurityaiassistantagent = LangGraphAgent(config)
89+
90+
# Export the fetch handler
91+
async def on_fetch(request, env):
92+
"""Main request handler for Cloudflare Workers"""
93+
return await informationsecurityaiassistantagent.fetch(request, env)

0 commit comments

Comments
 (0)