The following repository is used to store the OpenBAS agent for the platform. For performance and low level access, the agent is written in Rust. Please start your journey with https://doc.rust-lang.org/book.
Agent installation is fully managed by the OpenBAS platform.
You can find more information on the official documentation.
The agent is written in Rust. If you're new to Rust, start with The Rust Book.
cargo build
Run all tests (unit + integration):
cargo test
Run a specific test:
cargo test test_name
Requires cargo-llvm-cov
:
cargo install cargo-llvm-cov
cargo llvm-cov --html
Run locally:
cargo clippy -- -D warnings
Auto-fix:
cargo fix --clippy
Clippy runs in CI — all warnings must be fixed for the pipeline to pass.
Check formatting:
cargo fmt -- --check
Fix formatting:
cargo fmt
Rustfmt runs in CI to enforce formatting.
Check dependencies for known vulnerabilities:
cargo audit
Update vulnerable packages:
cargo update
Audit is included in CI to block new vulnerabilities.
All tests are run automatically in the CI pipeline using:
cargo test
Builds will fail if any tests or quality checks fail.
When running the agent in development mode using:
cargo run -- start
All logs are written to:
target/debug/openbas-agent.log
Check this file if something isn’t working or you need to debug an issue locally.
OpenBAS is developed by Filigran, a company dedicated to building open-source security tooling.