
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@peac/control
Advanced tools
PEAC protocol control engine: constraint enforcement, control block validation, and state management.
pnpm add @peac/control
@peac/control provides the Control Abstraction Layer (CAL) for the PEAC protocol. It defines vendor-neutral control engine interfaces, constraint types (temporal, usage, budget), enforcement logic, and state management for tracking receipt usage over time. Control engines evaluate whether a receipt's constraints are satisfied before granting access.
import { enforceTemporalConstraint } from '@peac/control';
const result = enforceTemporalConstraint({
type: 'temporal',
valid_from: 1700000000,
valid_until: 1700086400,
});
console.log(result.allowed); // true or false
console.log(result.remaining?.seconds); // seconds until expiry
import { createControlState, updateStateAfterUse, isStateExpired } from '@peac/control';
const state = createControlState('receipt-123', {
type: 'usage',
max_uses: 10,
});
const updated = updateStateAfterUse(state);
console.log(updated.usage_count); // 1
console.log(isStateExpired(updated)); // false
import { ControlEngineRegistry } from '@peac/control';
import type { ControlEngineAdapter } from '@peac/control';
const myEngine: ControlEngineAdapter = {
name: 'my-engine',
evaluate: async (context) => ({
result: 'allow',
evidence: { engine: 'my-engine', checked_at: new Date().toISOString() },
}),
};
const registry = new ControlEngineRegistry();
registry.register(myEngine);
@peac/schema (Layer 1): Control block and constraint Zod schemas@peac/protocol (Layer 3): Receipt issuance with embedded control blocks@peac/kernel (Layer 0): Types and constants used by control logicIf you are building an AI agent or MCP server that needs evidence receipts:
@peac/mcp-server for a ready-to-use MCP tool server@peac/protocol for programmatic receipt issuance and verificationApache-2.0
PEAC Protocol is an open source project stewarded by Originary and community contributors.
FAQs
PEAC Protocol Control - control engine interfaces and validation
We found that @peac/control 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.