automajicly commited on
Commit
6d573ae
Β·
verified Β·
1 Parent(s): 5bb0c05

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +52 -20
README.md CHANGED
@@ -4,47 +4,68 @@ language: en
4
  tags:
5
  - security
6
  - autonomous-agent
7
- - kali-linux
8
- - llm
9
- - mcp
10
  ---
11
 
12
  # Autonomous Security Agent
13
- A self-contained security agent built with Qwen 2.5-7B running locally via LM Studio on Kali Linux. The agent can autonomously execute security tools, analyze results, and take action through an MCP (Model Context Protocol) server.
 
 
 
 
 
 
 
 
 
14
 
15
  ## Features
16
 
 
 
17
  - **Local LLM Backend** β€” Qwen 2.5-7B served via LM Studio at `192.168.0.39:1234`
18
  - **Autonomous Tool Execution** β€” Runs security tools (nmap, masscan) through MCP
19
  - **Agent Loop** β€” Continuous reasoning and decision-making
20
  - **MCP Server** β€” Tool chain execution with `run_masscan`, `run_nmap`, `write_file`, `read_file`
21
 
22
  ## Components
 
23
 
24
- - `agent_loop.py` β€” Main agent reasoning loop
25
- - `mcp_server.py` β€” Tool execution server
26
- - `tools_manifest.json` β€” Tool definitions
27
- - `request.json` β€” Sample request format
28
 
29
- ## Security Setup
 
 
30
 
31
- ### Firewall Configuration
 
 
32
 
33
- - **Outbound**: All traffic allowed
34
- - **Inbound**: All traffic blocked (default deny)
35
- - **IDS**: Suricata for behavioral alerting
36
 
37
- ### Network Security
 
 
38
 
39
- - TOR integration for privacy
40
- - Local-only LLM inference (no external API calls)
41
- - MCP server bound to localhost only
 
 
 
 
 
 
 
 
42
 
43
  ## Installation & Setup
44
 
45
- 1. Install Kali Linux with Suricata
46
- 2. Install LM Studio and load Qwen 2.5-7B
47
- 3. Configure firewall rules (see docs/firewall-setup.md)
48
  4. Clone this repository
49
  5. Install Python dependencies
50
  6. Run the agent: `python agent_loop.py`
@@ -58,6 +79,17 @@ See the `docs/` folder for:
58
  - Suricata configuration
59
  - MCP server setup
60
 
 
 
 
 
 
 
 
 
 
 
 
61
  ## License
62
 
63
  MIT
 
4
  tags:
5
  - security
6
  - autonomous-agent
7
+ - A self-contained security agent built with Qwen 2.5-7B running locally via LM Studio on Kali Linux. The agent can autonomously execute security tools, analyze results, and take action through an MCP (Model Context Protocol) server. Built for local offensive security automation with real-time tool execution and autonomous decision loops.-linux- llm
 
 
8
  ---
9
 
10
  # Autonomous Security Agent
11
+
12
+ ## System Overview
13
+
14
+ This agent operates as a fully local autonomous security system that reasons, plans, and executes security tooling through a structured MCP execution layer.
15
+
16
+ It continuously cycles between:
17
+ - interpreting objectives
18
+ - selecting tools
19
+ - executing system-level security commands
20
+ - analyzing results locally via an embedded LLM
21
 
22
  ## Features
23
 
24
+ A modular autonomous security system built around a local reasoning engine with executable tool orchestration via MCP.
25
+
26
  - **Local LLM Backend** β€” Qwen 2.5-7B served via LM Studio at `192.168.0.39:1234`
27
  - **Autonomous Tool Execution** β€” Runs security tools (nmap, masscan) through MCP
28
  - **Agent Loop** β€” Continuous reasoning and decision-making
29
  - **MCP Server** β€” Tool chain execution with `run_masscan`, `run_nmap`, `write_file`, `read_file`
30
 
31
  ## Components
32
+ ## System Architecture
33
 
34
+ The system is composed of four interacting layers:
 
 
 
35
 
36
+ ### 1. Reasoning Layer
37
+ - `agent_loop.py` β€” Core autonomous decision engine
38
+ - Handles planning, evaluation, and iterative reasoning cycles
39
 
40
+ ### 2. Execution Layer
41
+ - `mcp_server.py` β€” Model Context Protocol execution backend
42
+ - Routes structured tool calls into system commands
43
 
44
+ ### 3. Tooling Layer
45
+ - `tools_manifest.json` β€” Defines available actions and capabilities
46
+ - `run_nmap`, `run_masscan`, `read_file`, `write_file`
47
 
48
+ ### 4. Interface Layer
49
+ - `request.json` β€” Input schema for agent initiation
50
+ - Defines structured prompts and task definitions
51
 
52
+ ## Security Setup
53
+
54
+ ### Firewall Configuration
55
+ - Default policy enforces outbound allow / inbound deny isolation
56
+ - Suricata deployed for behavioral intrusion detection and alerting
57
+ - System operates in execution-restricted network mode during agent runtime
58
+
59
+ ### Network Security Model
60
+ - TOR routing available for privacy-preserving traffic paths
61
+ - All LLM inference remains fully local (no external API dependency)
62
+ - MCP server restricted to localhost-bound execution only
63
 
64
  ## Installation & Setup
65
 
66
+ 1. Prepare a Kali Linux environment with network security tooling (Suricata enabled)
67
+ 2. Load Qwen 2.5-7B into LM Studio and expose local endpoint
68
+ 3. Configure system firewall rules for isolated execution mode
69
  4. Clone this repository
70
  5. Install Python dependencies
71
  6. Run the agent: `python agent_loop.py`
 
79
  - Suricata configuration
80
  - MCP server setup
81
 
82
+ ## System Behavior Loop
83
+
84
+ At runtime, the agent follows a continuous operational cycle:
85
+
86
+ 1. Receive objective via structured input
87
+ 2. Interpret intent using local LLM reasoning layer
88
+ 3. Select appropriate tool(s) from MCP registry
89
+ 4. Execute actions through MCP server
90
+ 5. Collect and normalize results
91
+ 6. Re-evaluate state and iterate until completion
92
+
93
  ## License
94
 
95
  MIT