
Security News
pnpm 11.5 Adds Support for Recognizing npm Staged Publishes
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.
@agenshield/broker
Advanced tools
Core broker daemon for AgenShield. It enforces security policies and performs privileged operations on behalf of sandboxed agents.
src/main.ts - Broker daemon entry point.src/server.ts - Unix socket JSON-RPC server (newline-delimited JSON).src/http-fallback.ts - Restricted HTTP JSON-RPC server (/rpc).src/handlers/* - Operation handlers (http_request, file_*, exec, etc.).src/policies/* - Policy enforcement and built-in rules.src/audit/logger.ts - JSONL audit log with rotation.src/secrets/vault.ts - Encrypted secret storage for secret_inject.src/client/broker-client.ts - Type-safe client for code integrations.src/client/shield-client.ts - CLI client (shield-client).http_request - Proxy HTTP requests.file_read, file_write, file_list - File system operations.exec - Execute a command.open_url - Open a URL in the default browser (macOS open).secret_inject - Read a secret from the vault (socket-only).ping - Health check.agenshield-broker
# Custom socket path
AGENSHIELD_SOCKET=/tmp/agenshield.sock agenshield-broker
# Disable HTTP fallback
AGENSHIELD_HTTP_ENABLED=false agenshield-broker
import { BrokerClient } from '@agenshield/broker/client';
const client = new BrokerClient({
socketPath: '/var/run/agenshield.sock',
});
const response = await client.httpRequest({
url: 'https://api.example.com/data',
method: 'GET',
});
const file = await client.fileRead({ path: '/path/to/file.txt' });
const execResult = await client.exec({ command: 'ls', args: ['-la'] });
shield-client ping
shield-client http GET https://api.example.com/data
shield-client file read /path/to/file.txt
shield-client exec ls -la
The broker loads configuration from a file (default: /opt/agenshield/config/shield.json) and overlays environment variables.
Environment variables:
AGENSHIELD_CONFIG - Config file path.AGENSHIELD_SOCKET - Unix socket path (default: /var/run/agenshield.sock).AGENSHIELD_HTTP_ENABLED - true/false to enable HTTP fallback.AGENSHIELD_HTTP_HOST - HTTP fallback host (default: localhost).AGENSHIELD_HTTP_PORT - HTTP fallback port (default: 5200).AGENSHIELD_POLICIES - Policies directory (default: /opt/agenshield/policies).AGENSHIELD_AUDIT_LOG - Audit log path (default: /var/log/agenshield/audit.log).AGENSHIELD_LOG_LEVEL - debug|info|warn|error.AGENSHIELD_FAIL_OPEN - true to allow on policy-check failure.Config file fields (subset):
{
"socketPath": "/var/run/agenshield.sock",
"httpEnabled": true,
"httpHost": "localhost",
"httpPort": 5200,
"policiesPath": "/opt/agenshield/policies",
"auditLogPath": "/var/log/agenshield/audit.log",
"logLevel": "info",
"failOpen": false,
"socketMode": 504
}
policiesPath/default.json plus any JSON files in policiesPath/custom/.The HTTP fallback server is intentionally restricted:
http_request, file_read, file_list, open_url, ping.exec, file_write, secret_inject.POST /rpc from localhost.GET /health returns a simple health response.open_url is macOS-specific (uses open).exec output is capped at 10MB and does not stream..key file alongside the encrypted vault; it does not integrate with OS keychains.# Build
npx nx build shield-broker
src/handlers/* (handler implementation)src/server.ts and src/http-fallback.ts (method routing + HTTP allowlist)@agenshield/ipc operation types and schemastarget field for policy visibility.BrokerClient enforces socket-only channels for exec, file_write, and secret_inject.AuditLogger is append-only JSONL with rotation; use it for operational forensics.@agenshield/ipc.FAQs
AgenShield broker daemon with Unix socket and HTTP fallback
The npm package @agenshield/broker receives a total of 46 weekly downloads. As such, @agenshield/broker popularity was classified as not popular.
We found that @agenshield/broker 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.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.