-
Notifications
You must be signed in to change notification settings - Fork 4
Closed as not planned
Description
Problem Statement
LLOLWKI currently executes security tools through raw shell commands in playbooks, leading to:
- No standardized parameter validation across tools
- Inconsistent error handling between different tools
- Limited sandboxing capabilities (despite having container infrastructure)
- Difficult tool discovery for LLMs
- No unified API for tool execution
Proposed Solution: Robopages Integration
Integrate robopages to provide:
- Unified Tool API: All LLMs access tools through standardized interface
- Automatic Validation: Parameters validated before execution
- Built-in Isolation: Each tool runs in its designated container
- Self-Documentation: Tools are self-describing via YAML definitions
- Better Tool Discovery: LLMs can query available tools and their parameters
Architecture
LLM Models ──► LLOLWKI Core ──► Robopages API ──► Tool Containers
│ │
└──► Robopages Agent ◄────────────────┘
Implementation Tasks
Phase 1: Foundation
- Install robopages-cli server
- Setup robopages to run on startup
- Copy existing robopages tool definitions
- Create basic integration test
Phase 2: LLOLWKI Integration
- Create
RobopagesAgentclass inagents/robopages_agent.py - Add
robopagetask type to playbook runner - Update playbook schema documentation
- Create helper functions for tool discovery
Phase 3: Tool Migration
- Migrate nmap commands to robopages
- Migrate sqlmap commands to robopages
- Migrate curl/wget to robopages
- Create LLOLWKI-specific tool definitions
Phase 4: Testing & Documentation
- Unit tests for RobopagesAgent
- Integration tests with existing playbooks
- Performance benchmarks
- Update documentation and examples
Example Usage
Before (current approach):
- name: "SQL injection test"
type: shell
command: |
docker run --rm -v $PWD:/data \
sqlmap -u "{{ target }}" --dbs --batchAfter (with robopages):
- name: "SQL injection test"
type: robopage
tool: sqlmap_scan
parameters:
target: "{{ target }}"Benefits
- Standardization: Consistent interface for all security tools
- Validation: Parameters checked before execution
- Isolation: Automatic container management
- Discovery: LLMs can query available tools
- Maintenance: Easier to add/update tools
Success Criteria
- All major security tools accessible via robopages
- Existing playbooks work with minimal modifications
- Improved error messages and parameter validation
- Tool discovery endpoint for LLMs
- Performance overhead < 10% vs direct execution
Related Issues
- Fixes container isolation concerns from fix: suggestion for volume mount issue #8
- Enhances LLM tool usage from docs: readme addition for container pull errs #12
- Complements OpenRouter integration from Build directives do not check for image before building #14
/cc @gyrusdentatus - This will significantly improve how LLMs interact with security tools in LLOLWKI
Metadata
Metadata
Assignees
Labels
No labels