New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

ccs-runtime

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ccs-runtime

CCS (Correctover Conformance Shape) runtime verification for AI agents — 7-dimension pre-execution checks at sub-25μs P50

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

ccs-runtime

Runtime verification for AI agents — 7 dimensions, sub-25μs P50, Ed25519 audit receipts

CCS (Correctover Conformance Shape) intercepts every tool call before execution and validates it across 7 dimensions: structure, schema, latency, cost, identity, integrity, and security. If something's wrong, it blocks — not after the damage, but before.

Why

The AutoGen community proved it: prompt-based guardrails don't work. 56 days of testing showed every safety rule being bypassed by the agent itself, resulting in $106K in losses.

The fix? Enforcement must be structurally separate from the agent's process. That's exactly what CCS does.

Install

npm install ccs-runtime

Quick Start

import { CCSVerifier } from 'ccs-runtime';

const ccs = new CCSVerifier({
  block_on_failure: true,
  latency_budget_us: 5000,   // 5ms max execution time
  cost_budget_usd: 0.10,     // $0.10 max per request
});

// Catch SQL injection before it hits the database
const result = await ccs.verify({
  tool_name: 'execute_sql',
  tool_input: { query: "SELECT * FROM users; DROP TABLE users" },
});

// result.overall_pass === false
// result.blocked_dimensions === ['security']

As Middleware

Drop it into any agent framework as middleware:

import { CCSVerifier } from 'ccs-runtime';

const ccs = new CCSVerifier({ block_on_failure: true });

// Wraps any tool execution
const safeResult = await ccs.middleware(
  { tool_name: 'http_request', tool_input: { url: 'http://169.254.169.254/latest/meta-data/' } },
  () => executeHttpRequest(url)
);
// Throws CCSError — SSRF blocked

7 Dimensions

#DimensionWhat it checks
1StructureTool call format validity
2SchemaInput/output type conformance
3LatencyExecution time budget enforcement
4CostToken/USD budget per request
5IdentityCaller identity verification
6IntegrityEd25519 payload signature
7SecurityInjection, RCE, SSRF, credential exfiltration

Security Rules (Built-in)

RuleDetectsSeverity
SEC-001Shell injection (;, ``, backticks)
SEC-002SSRF (internal IPs, cloud metadata)BLOCK
SEC-003Cloud credential exfiltration (AWS/GCP/Azure keys)BLOCK
SEC-004Path traversal (../, %2e%2e)BLOCK
SEC-005SQL injection (SELECT/DROP/UNION patterns)CRITICAL
SEC-006Command execution (eval/exec/system/spawn)BLOCK

Add your own:

ccs.addSecurityRule({
  id: 'CUSTOM-001',
  name: 'No crypto mining',
  description: 'Block cryptocurrency mining patterns',
  severity: 'block' as any,
  dimension: 'security' as any,
  pattern: /stratum\+tcp|xmrig|coinhive/i,
});

Schema Registration

ccs.registerSchema({
  name: 'send_email',
  input_schema: {
    type: 'object',
    properties: {
      to: { type: 'string', required: true },
      subject: { type: 'string', maxLength: 200 },
      body: { type: 'string', maxLength: 10000 },
    },
    required: ['to'],
  },
});

Licensing

TierVerifications/monthPriceFeatures
Free1,000$07-dimension verification, built-in security rules
Pro50,000$29/mo+ Custom security rules, priority support
EnterpriseUnlimitedCustom+ Ed25519 audit receipts, SLA, dedicated support

Get your license key: correctover.com/license

import { CCSVerifier, LicenseManager } from 'ccs-runtime';

const lm = new LicenseManager();
const key = lm.generateKey('pro'); // CCS-PRO-XXXXXXXX-XXXX

const ccs = new CCSVerifier({ license_key: key });

Standards

CCS is an open verification standard progressing through IETF (draft-correctover-ccs-05). The runtime SDK is the reference implementation.

Performance

ModeP50P99
In-process~7.5μs~21μs
Out-of-process (API)~133μs~237μs

Benchmarked on M2 MacBook Pro, Node.js 22, 7-dimension full verification.

MCP Live Demo

Try it: mcp.correctover.com/mcp

License

Proprietary — see LICENSE file. The CCS standard specification is open.

Keywords

mcp

FAQs

Package last updated on 14 Aug 2026

Related posts