# Guard402 Autonomous MCP Security, Web Sanitizer & DeFi Suite (`kuroxreal/guard402-autonomous-mcp-suite`) Actor

Autonomous 6-in-1 AI Agent Security & DeFi Intelligence Suite (Guard402 Autonomous MCP Security, Web Sanitizer & DeFi Audit Suite): Static MCP Repo Audits, Prompt-Injection Firewall, SSRF-Safe Stealth Web Extraction, Base Token Honeypot Simulation & AutoPatch.

- **URL**: https://apify.com/kuroxreal/guard402-autonomous-mcp-suite.md
- **Developed by:** [AK | Kurox](https://apify.com/kuroxreal) (community)
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 mcp repository security & compliance audits

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Guard402 Autonomous MCP Security, Web Sanitizer & DeFi Audit Suite

**Guard402 Autonomous MCP Suite** (`guard402-autonomous-mcp-suite`) is a 6-in-1 security verification, prompt-injection firewall, SSRF-safe stealth web extraction, and on-chain DeFi intelligence Actor built for autonomous AI agents, MCP servers, and Web3 execution pipelines.

Backed by the live **Kurox x402 V2 Dual-Chain Intelligence Fleet** (`canaryguard-402`, `stealthguard-402`, `rugshield-402`, and `x402-agent-tollbooth`), every run produces a deterministic security score (`0–100`), machine-verifiable cryptographic receipt (`guard402-v2-*`), and an optional **AutoPatch Vault** unified diff remediation preview.

***

### Capabilities & Supported Actions

| Action (`action`) | PPE Event Key | Price (USD) | Description |
| :--- | :--- | :---: | :--- |
| **`audit_mcp_repo`** | `mcp_security_audit` | **`$0.02`** | Static compliance & security audit of MCP repositories for JSON-RPC 2.0 schema validation, SSRF vectors, command injection, and SPDX licensing. |
| **`sanitize_prompt`** | `prompt_firewall_scan` | **`$0.01`** | Deterministic prompt-injection firewall that detects and neutralizes system prompt overrides, hidden Unicode, HTML scripts, and wallet-drainer instructions. |
| **`stealth_extract`** | `stealth_web_extract` | **`$0.02`** | SSRF-guarded web extraction that strips active scripts/trackers into clean LLM Markdown and scrubs extracted DOM text through CanaryGuard. |
| **`scan_base_token`** | `token_rug_simulation` | **`$0.02`** | On-chain Base Mainnet (`eip155:8453`) bytecode verification and pre-trade honeypot/tax simulation via RugShield-402 & Base RPC. |
| **`contract_audit`** | `smart_contract_patch_preview` | **`$0.05`** | Smart contract vulnerability analysis (reentrancy, unchecked calls, EIP-3009 nonce replay) with unified diff patch generation. |
| **`polymarket_whale_radar`** | `stealth_web_extract` | **`$0.02`** | Live Polymarket Gamma active market volume, liquidity depth, and whale orderflow divergence radar. |

***

### Example Input

```json
{
  "action": "audit_mcp_repo",
  "target": "https://github.com/modelcontextprotocol/servers",
  "include_patch": true,
  "strict_mode": true
}
```

### Example Output (Dataset Item)

```json
{
  "action": "audit_mcp_repo",
  "target": "https://github.com/modelcontextprotocol/servers",
  "status": "completed",
  "security_score": 94,
  "risk_level": "LOW",
  "charged_event": "mcp_security_audit",
  "charged_price_usd": 0.02,
  "safety_receipt": "guard402-v2-8f93a1c2e4b09d12",
  "autopatch_vault": {
    "patch_id": "apv-4c81e90b2a11",
    "remediation_ready": true,
    "vault_verify_url": "https://x402-agent-tollbooth.onrender.com/api/audit?patch_id=apv-4c81e90b2a11"
  }
}
```

***

### x402 V2 Dual-Chain Direct Settlement (Base & Solana)

In addition to Apify Pay-Per-Event billing, all upstream Guard402 services support gasless **x402 V2** micropayments on:

- **Base Mainnet (`eip155:8453`)**: USDC (`0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`)
- **Solana Mainnet (`solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`)**: USDC (`EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v`)

# Actor input Schema

## `action` (type: `string`):

The security or intelligence operation to execute.

## `target` (type: `string`):

GitHub repository URL (for audit_mcp_repo), untrusted prompt text (for sanitize_prompt), web URL (for stealth_extract), Base token/contract 0x address (for scan_base_token / contract_audit), or market query (for polymarket_whale_radar).

## `include_patch` (type: `boolean`):

If true, generates a deterministic unified diff security patch preview and attaches x402 AutoPatch Vault metadata.

## `strict_mode` (type: `boolean`):

Enforce strict SSRF filtering, zero-trust prompt redaction, and conservative bytecode risk scoring.

## Actor input object example

```json
{
  "action": "audit_mcp_repo",
  "target": "https://github.com/modelcontextprotocol/servers",
  "include_patch": true,
  "strict_mode": true
}
```

# Actor output Schema

## `resultsDatasetUrl` (type: `string`):

Default dataset containing structured security scores, vulnerability findings,AutoPatch remediation diffs, and cryptographic receipts

## `latestReportUrl` (type: `string`):

Direct JSON link to the primary execution report

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "target": "https://github.com/modelcontextprotocol/servers"
};

// Run the Actor and wait for it to finish
const run = await client.actor("kuroxreal/guard402-autonomous-mcp-suite").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "target": "https://github.com/modelcontextprotocol/servers" }

# Run the Actor and wait for it to finish
run = client.actor("kuroxreal/guard402-autonomous-mcp-suite").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "target": "https://github.com/modelcontextprotocol/servers"
}' |
apify call kuroxreal/guard402-autonomous-mcp-suite --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kuroxreal/guard402-autonomous-mcp-suite"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/IikcDKzk09PKmNEe0/builds/7iD3gg4aw78vRLF8S/openapi.json
