Runtime Integrity Membrane
Zero-overhead tamper detection for Python and Node.js.
Built by OpenDOK Foundation.
Mechanism
At startup, Folija computes a SHA-256 hash of every monitored source file and stores a signed baseline manifest. Any deviation from this manifest is a tamper event.
A custom sys.meta_path hook intercepts every module import at runtime. Each load is verified against the baseline — zero impact on request latency.
On tamper detected: WhatsApp alert fires instantly, a blockchain seal is submitted via ChainBlock POE, and a Redis tamper flag is raised to block further execution.
Getting Started
# Install $ pip install folija # Add to your Django/FastAPI/Flask entry point from folija import activate activate() # Inserts hook into sys.meta_path -- done. # Optional: custom baseline path + alarm webhook activate( baseline_path=".folija/baseline.json", alarm_webhook="https://your-endpoint.example/alarm", redis_url="redis://localhost:6379/4", )
# Install $ npm install folija // Add to your app entry point (index.js / server.js) const { activate } = require("folija"); activate(); // Hooks into Node.js module loader -- done. // Optional config activate({ baselinePath: ".folija/baseline.json", alarmWebhook: "https://your-endpoint.example/alarm", redisUrl: "redis://localhost:6379/4", });
Where it fits
Monitor all application modules in production. Instant alert if a file is altered between deploys.
ERP, accounting, and invoicing platforms where a tampered module could mean fraudulent transactions.
Ensure document generation logic is unmodified. Every signed output is provably from unaltered code.
Any Python or Node.js service where integrity guarantees are a compliance or contractual requirement.
Production-tested
Folija is production-tested in NO LIMIT ERP — an EU-targeted accounting and business management platform monitoring 293+ critical modules across 9 application domains including finance, legal documents, payroll, and inventory.
The production deployment runs on a hardened Django stack with three independent alarm channels firing in parallel the moment any monitored file deviates from its signed baseline.
Find us on
Folija v1.0.0 — Runtime Integrity Membrane