SyberOffense Kali MCP
by KrahenbillC
README.md
# SyberOffense ARTEX Kali MCP
**Version:** 1.0.0
**BUILD - DEPLOY - PRACTICE - BREAK - REPEAT**
## Overview
SyberOffense ARTEX Kali MCP provides an automated
installation and validation framework for connecting
ARTEX to an authenticated MCP server on Kali Linux.
This release provides a diagnostic foundation for
controlled cybersecurity training environments.
## Features
- Automated prerequisite checks
- ARTEX container detection
- Dynamic Docker network gateway detection
- Python virtual environment management
- Secure authentication token generation
- Bearer token authentication
- User-level systemd service management
- Automated installation validation
- Safe reinstallation
- Automated uninstallation
## Requirements
- Kali Linux
- Python 3 with virtual environment support
- Docker Engine
- Docker Compose
- Running ARTEX container
- Systemd user session
- Internet access for dependency installation
- Sudo access for Docker inspection
## Installation
From the project directory, execute:
```bash
python3 install.py
```
The installer automatically configures the MCP server
and generates a unique authentication token.
## Validation
Execute:
```bash
.venv/bin/python validate.py
```
Expected result:
```text
VALIDATION SUCCESSFUL
SyberOffense MCP server is operational.
```
## ARTEX Configuration
1. Open the ARTEX management interface.
2. Navigate to System > MCP.
3. Add an HTTP remote MCP server.
4. Name it SyberOffense Kali MCP.
5. Retrieve the generated endpoint:
```bash
cat config.json
```
6. Retrieve your authentication token privately:
```bash
cat mcp.token
```
7. Configure the authorization header:
```text
Authorization=Bearer YOUR_TOKEN
```
8. Save the connector.
9. Enable automatic tool discovery.
## Test MCP Integration
Open a new ARTEX chat and enter:
Invoke the lab_status tool from the SyberOffense
Kali MCP server and return its exact response.
Expected tool response:
```text
SyberOffense Kali MCP server is operational.
```
## Service Management
Check service status:
```bash
systemctl --user status syberoffense-mcp.service
```
Restart the service:
```bash
systemctl --user restart syberoffense-mcp.service
```
Stop the service:
```bash
systemctl --user stop syberoffense-mcp.service
```
View service logs:
```bash
journalctl --user -u syberoffense-mcp.service -n 50
```
## Reinstallation
Execute:
```bash
python3 install.py
```
The installer verifies existing service ownership
before stopping and redeploying the service.
Existing valid authentication tokens are retained.
## Uninstallation
Execute:
```bash
python3 uninstall.py
```
The uninstaller removes the managed MCP service,
authentication token, generated configuration,
and Python virtual environment.
ARTEX and project source files are preserved.
Remove the MCP connector from ARTEX manually.
## Security Controls
- Randomly generated authentication tokens
- Restricted token file permissions (0600)
- Constant-time authentication comparison
- Docker gateway-specific network binding
- Systemd service ownership verification
- NoNewPrivileges enforcement
- Unauthorized request rejection
- No arbitrary shell command execution
- Sensitive files excluded from Git
Never publish or share authentication tokens.
Use this software only within isolated and
authorized training environments.
## Troubleshooting
Run the automated validator first:
```bash
.venv/bin/python validate.py
```
Common issues:
- ARTEX container is not running.
- Docker network gateway has changed.
- MCP port 8000 is already occupied.
- Authentication token does not match.
- Systemd user service is inactive.
- ARTEX automatic tool discovery is disabled.
## Tested Environment
- Kali Linux
- VirtualBox
- Python 3.14.10
- Docker Engine 28.5.2
- Docker Compose 2.40.3-3
- MCP SDK 2.3.0
- ARTEX 0.3.15-failsafe.3
## Verified Testing
- Independent Kali VM testing completed successfully.
- Automatic service startup at user login is enabled and verified.
- Service ownership protection has been tested successfully.
## Known Limitations
- Authentication uses HTTP within the isolated lab.
- Version 1.0.0 exposes a diagnostic MCP tool only.
- Installation requires an existing ARTEX deployment.
## Author
Clifton Krahenbill
SyberOffense Cybersecurity Training
https://syberoffense.com
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues