
Product
PHP and Composer Support Is Now in Beta
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.
Offline EU AI Act compliance linter for AI agents. Tier-1 regex scan of prompts and outputs against a bundled 64-rule corpus — Art. 5 prohibited practices, Art. 50 transparency, GDPR, HIPAA, SOX, PCI DSS, COPPA. CLI and library. No API key, no network cal
Offline Node.js compliance linter for AI agents — scans text against the bundled ComplyEdge rule corpus using Tier 1 regex patterns. No API key required.
Catches EU AI Act, SOX, HIPAA, GDPR, COPPA, and PCI DSS violations before they reach production.
TrustLint runs locally and needs no API key. For runtime policy enforcement and an application-facing evidence trail, use the hosted ComplyEdge Python SDK.
This is the npm package README. PyPI uses its own Python-first long description, while both distributions use the same bundled rule corpus.
Node.js:
npm install trustlint
Python:
pip install trustlint
Both bundle the rule corpus, so neither needs a local rules/ directory.
# Check text for compliance violations
trustlint check --text "We expect revenue to increase by 25% next quarter"
# Check a file
trustlint check prompt.txt
# Pipe from stdin
echo "Deploy social credit score for citizens" | trustlint check
# Filter by jurisdiction
trustlint check --text "social credit score" --jurisdiction EU
# Verbose output (citations + remediation)
trustlint check --text "earnings forecast" -v
trustlint checkScan text for compliance violations against the loaded rule corpus.
trustlint check --text "your AI prompt here" # Check a string
trustlint check myfile.py # Check a file
trustlint check --text "text" -j EU # Filter to EU rules only
trustlint check --text "text" -v # Verbose: show citations
Exit codes:
0 — No critical/high violations (CI pass)1 — Critical or high severity violations found (CI fail)2 — Input error (missing file, no rules loaded)trustlint rules listShow all loaded compliance rules with severity and jurisdiction.
trustlint rules list # All rules
trustlint rules list -j US # US rules only
trustlint initCreate a .trustlint.yaml configuration file in the current directory.
trustlint init # Create config
trustlint init --force # Overwrite existing
TrustLint Report
────────────────────────────────────────────────────────────
[CRITICAL] SOX_HYBRID_MATERIAL_DISCLOSURE_001
Hybrid SOX Material Information Disclosure Prevention
Jurisdiction: US | Matched: Forward-looking statements requiring analysis
────────────────────────────────────────────────────────────
1 critical/high, 0 medium/low (12 rules evaluated)
TrustLint loads YAML rule files from the ComplyEdge rule corpus (rules/regulations/). Each rule contains regex patterns for Tier 1 (fast, deterministic) detection. The engine:
.yaml rule files from the rules directoryregex conditions and hybrid_detection.tier1_config.risk_flag_patternsNo API calls are made in offline mode. For deeper Tier 2 LLM analysis, set the COMPLYEDGE_API_KEY environment variable (requires a ComplyEdge account).
- name: Compliance check
run: |
pip install trustlint
trustlint check --text "${{ github.event.pull_request.body }}"
#!/bin/sh
trustlint check "$1" || exit 1
| Jurisdiction | Regulations | Examples |
|---|---|---|
| EU | EU AI Act Article 5 | Social scoring, subliminal manipulation, biometric categorisation |
| US | SOX, HIPAA, COPPA, TCPA | Material disclosure, PHI protection, child data |
| Global | PCI DSS | Payment card data detection |
Create .trustlint.yaml with trustlint init:
# Rules directory (default: auto-detect)
# rules_dir: ./rules/regulations
# Default jurisdiction filter
# jurisdiction: EU
# Severity threshold
# severity_threshold: medium
# Install in development mode
pip install -e packages/trustlint/
# Run tests
python -m pytest tests/unit/trustlint/ -v
Apache-2.0 — ComplyEdge
FAQs
Offline EU AI Act compliance linter for AI agents. Tier-1 regex scan of prompts and outputs against a bundled 64-rule corpus — Art. 5 prohibited practices, Art. 50 transparency, GDPR, HIPAA, SOX, PCI DSS, COPPA. CLI and library. No API key, no network cal
The npm package trustlint receives a total of 707 weekly downloads. As such, trustlint popularity was classified as not popular.
We found that trustlint 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’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.

Product
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.

Research
/Security News
Three compromised Rust crates pulled in a malicious dependency that downloaded and executed cross-platform malware during Cargo builds.