| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Security Middleware for Node.js
Important
Astraea is currently in active development and intended for security research and development environments.
Astraea is a high-performance security middleware for Node.js. It implements an Object-Capability (O-Cap) enforcement layer at the native C-ABI boundary, protecting applications from supply-chain attacks, Remote Code Execution (RCE) exploits, and unauthorized data access.
Astraea utilizes a modular design:
Technical specifications and research documentation can be found in the docs/ directory:
To build the project in optimized release mode:
zig build -Doptimize=ReleaseFastThe resulting library will be located at zig-out/lib/libastraea.so.
Inject Astraea into any Node.js process using LD_PRELOAD:
RUST_LOG=astraea=info LD_PRELOAD=./zig-out/lib/libastraea.so node your-app.jsPolicies are defined in a TOML manifest, allowing restriction by package name or the root application package.
[packages.root]
fs = ["read:package.json", "read:src/**"]
native_addons = ["*.node"]
network = ["allow:api.github.com:443", "allow:127.0.0.1:53"]
[packages.axios]
network = ["allow:*.github.com:*"]
[seccomp]
allowed_syscalls = ["ptrace"]
[spoofs]
"config/secrets.json" = "{\"key\": \"mocked_value\"}"Astraea is designed for high-throughput environments. Current benchmarks indicate an average overhead of ~0.03ms per intercepted call, fitting within high-performance Node.js requirements.
Astraea is a security research project. It provides robust protection at the libuv layer and enforces a Linux seccomp-bpf filter to block unauthorized direct syscalls at the kernel level, mitigating bypasses via custom native addons. It should be evaluated in staging environments prior to any production deployment.
Built with 🦀 & ⚡ by Seuriin
| Back | FazBrowse Home | New Git URL |