
Product
Socket Threat Intel Now Shows Which Malware Campaigns Were Blocked or Detected
Socket Threat Intel now shows which malware campaigns were blocked or detected in your organization, with links to scans and Firewall events.
@mcpolyglot/security
Advanced tools
Non-bypassable security middleware for mcpolyglot: scopes, redaction, audit, rate-limit, and untrusted-data wrapping.
The non-bypassable security middleware for mcpolyglot. Implements every phase of the pipeline that wraps tool calls in @mcpolyglot/core.
ScopeGuard — refuses tools whose required scopes aren't in the granted set.RateLimiter — token bucket per session per tool, plus a max-concurrent gate.Redactor — built-in regex set (emails, JWTs, AWS access keys, GitHub tokens, SSNs, credit-card numbers) plus per-table column deny lists.AuditLogger: append-only JSONL audit sink. See Audit log.Every tool call writes one entry, including calls that were denied or failed:
{
"ts": "…",
"sessionId": "…",
"agentId": "claude-code",
"tool": "pg.main.query",
"decision": "deny",
"reason": "Table \"secrets\" is not accessible under this policy.",
"argsHash": "3f9c…",
"scopes": ["…"],
"durationMs": 4,
"rows": 0,
"error": { "code": "forbidden.policy", "message": "…" }
}
agentId is the x-mcpolyglot-agent request header (HTTP), else the MCP client's clientInfo.name.decision: allow, deny (policy, scope, rate limit or timeout), or error (anything else).audit.path: an append-only file.audit.webhookUrl: a best-effort POST. Failures go to stderr, never fail the call, and never echo the URL.reason and error text are scrubbed of scheme://user:pass@ credentials and the built-in redaction patterns (email, JWT, keys, …), then truncated to 500 chars.O_APPEND. Tamper-evidence (hash chains, WORM storage) is out of scope; ship to a webhook or your log pipeline for that.audit: { console: true, path: '~/.mcpolyglot/audit.log', webhookUrl: '${env:AUDIT_WEBHOOK}' }
Tests: src/__tests__/audit.test.ts (sinks, scrubbing) and packages/core/src/__tests__/audit.test.ts (decision, agent id, no raw args or rows).
wrapUntrusted / enforceSize — <mcpolyglot-data> prompt-injection wrapper and a hard byte cap on serialized output.defaultSecurityHooks(opts) — composes all of the above into the SecurityHooks shape McpolyglotServer expects.composeHooks(...hooks) — chain custom hooks alongside the defaults.Connectors, the CLI, and any embedding host all need to construct the security hooks the same way. Keeping them in one package makes that boring and reviewable.
MIT licensed.
FAQs
Non-bypassable security middleware for mcpolyglot: scopes, redaction, audit, rate-limit, and untrusted-data wrapping.
The npm package @mcpolyglot/security receives a total of 0 weekly downloads. As such, @mcpolyglot/security popularity was classified as not popular.
We found that @mcpolyglot/security demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Socket Threat Intel now shows which malware campaigns were blocked or detected in your organization, with links to scans and Firewall events.

Security News
Fixes for eMudhra and Brotli are out. Getting them everywhere they’re needed means tracking down bundled libraries, runtimes, and certificate stores.

Threat Research
/Security News
Socket uncovered secret-stealing workflows that ran in LiteLLM’s GitHub repository 11 days before the supply chain attack on PyPI and Docker.