Aya is an eBPF library for the Rust programming language, built with a focus on developer experience and operability.
This report summarizes scanner evidence for aya-rs/aya, a Rust project with 4,883 GitHub stars. SynthScan examined 159,415 lines of code across 496 source files, recording 454 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 2.8 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 452 finding(s).
Are imports declared and package/API names verified? 2 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 454 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 454 distinct pattern matches across 3 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/integration-test/bpf/ksyms.bpf.c | 1 | // clang-format off | COMMENT |
| LOW | test/integration-test/src/tests/sk_reuseport.rs | 81 | COMMENT | |
| LOW | test/integration-test/src/tests/fexit.rs | 21 | _ => "HELPER_ERROR", | COMMENT |
| LOW | test/integration-ebpf/build.rs | 1 | use std::env; | COMMENT |
| LOW | test/integration-ebpf/src/sk_storage.rs | 41 | COMMENT | |
| LOW | test/integration-ebpf/src/socket_filter.rs | 41 | } | COMMENT |
| LOW | aya-obj/include/linux_wrapper.h | 1 | #include <linux/bpf.h> | COMMENT |
| LOW | aya-obj/src/lib.rs | 1 | //! An eBPF object file parsing library with BTF and relocation support. | COMMENT |
| LOW | aya-obj/src/lib.rs | 21 | //! about the eBPF programs. | COMMENT |
| LOW | aya-obj/src/lib.rs | 41 | //! object.relocate_calls(&text_sections).unwrap(); | COMMENT |
| LOW | aya-obj/src/maps.rs | 321 | /// for more info. | COMMENT |
| LOW | aya-obj/src/obj.rs | 101 | pub instructions: Vec<bpf_insn>, | COMMENT |
| LOW | aya-obj/src/obj.rs | 121 | /// - The section name must conform to [Program Types and ELF Sections]. | COMMENT |
| LOW | ebpf-panic/src/lib.rs | 1 | //! A panic handler for eBPF rust targets. | COMMENT |
| LOW | ebpf-panic/src/lib.rs | 21 | //! | COMMENT |
| LOW | aya-log/src/lib.rs | 1 | //! A logging framework for eBPF programs. | COMMENT |
| LOW | aya-log/src/lib.rs | 21 | //! // start reading aya-log records and log them using the default logger | COMMENT |
| LOW | aya-log/src/lib.rs | 41 | //! use aya_log_ebpf::{debug, error, info, trace, warn}; | COMMENT |
| LOW | aya-ebpf-macros/src/lib.rs | 141 | /// | COMMENT |
| LOW | aya-ebpf-macros/src/lib.rs | 201 | /// Marks a function as a [`CgroupSockAddr`] eBPF program. | COMMENT |
| LOW | aya-ebpf-macros/src/lib.rs | 221 | /// pub fn connect4(ctx: SockAddrContext) -> i32 { | COMMENT |
| LOW | aya-ebpf-macros/src/lib.rs | 261 | Ok(prog) => prog.expand(), | COMMENT |
| LOW | aya-ebpf-macros/src/lib.rs | 281 | /// use aya_ebpf::{macros::raw_tracepoint, programs::RawTracePointContext}; | COMMENT |
| LOW | aya-ebpf-macros/src/lib.rs | 301 | .into() | COMMENT |
| LOW | aya-ebpf-macros/src/lib.rs | 321 | /// | COMMENT |
| LOW | aya-ebpf-macros/src/lib.rs | 341 | match Lsm::parse(attrs.into(), item.into()) { | COMMENT |
| LOW | aya-ebpf-macros/src/lib.rs | 361 | /// # Minimum kernel version | COMMENT |
| LOW | aya-ebpf-macros/src/lib.rs | 381 | /// ``` | COMMENT |
| LOW | aya-ebpf-macros/src/lib.rs | 401 | /// | COMMENT |
| LOW | aya-ebpf-macros/src/lib.rs | 421 | #[proc_macro_attribute] | COMMENT |
| LOW | aya-ebpf-macros/src/lib.rs | 441 | /// | COMMENT |
| LOW | aya-ebpf-macros/src/lib.rs | 461 | /// to a `SockMap`. | COMMENT |
| LOW | aya-ebpf-macros/src/lib.rs | 501 | /// # Minimum kernel version | COMMENT |
| LOW | aya-ebpf-macros/src/lib.rs | 521 | .into() | COMMENT |
| LOW | aya-ebpf-macros/src/lib.rs | 541 | /// # #[expect(non_camel_case_types)] | COMMENT |
| LOW | aya-ebpf-macros/src/lib.rs | 561 | match FEntry::parse(attrs.into(), item.into()) { | COMMENT |
| LOW | aya-ebpf-macros/src/lib.rs | 581 | /// # Examples | COMMENT |
| LOW | aya-ebpf-macros/src/lib.rs | 601 | /// let _retval: c_int = ctx.ret()?; | COMMENT |
| LOW | aya-ebpf-macros/src/lib.rs | 621 | /// `FlowDissectorContext::flow_keys`. The return code of the BPF program is | COMMENT |
| LOW | aya-ebpf-macros/src/lib.rs | 641 | /// ``` | COMMENT |
| LOW | aya-ebpf-macros/src/lib.rs | 661 | /// The minimum kernel version required to use this feature is 5.9 | COMMENT |
| LOW | aya-ebpf-macros/src/lib.rs | 681 | } | COMMENT |
| LOW | aya-ebpf-macros/src/lib.rs | 701 | /// | COMMENT |
| LOW | aya-ebpf-macros/src/lib.rs | 721 | /// maps::ReusePortSockArray, | COMMENT |
| LOW | aya-ebpf-macros/src/lib.rs | 741 | /// Ok(()) => SK_PASS, | COMMENT |
| LOW | aya-ebpf-macros/src/lib.rs | 761 | /// } | COMMENT |
| LOW | aya-ebpf-macros/src/lib.rs | 781 | /// | COMMENT |
| LOW | aya/src/util.rs | 101 | // backports were done to cap the patch version | COMMENT |
| LOW | aya/src/util.rs | 321 | Err(ParseIntError { .. }) => None, | COMMENT |
| LOW | aya/src/util.rs | 381 | pub(crate) const fn tc_handler_make(major: u32, minor: u32) -> u32 { | COMMENT |
| LOW | aya/src/lib.rs | 1 | //! [](https://aya-rs.dev) | COMMENT |
| LOW | aya/src/lib.rs | 21 | //! supported by the target kernel. This allows eBPF programs compiled against | COMMENT |
| LOW | aya/src/bpf.rs | 61 | /// relocations. You can use `EbpfLoader` to customize some of the loading | COMMENT |
| LOW | aya/src/bpf.rs | 161 | /// Sets the target [BTF](Btf) info. | COMMENT |
| LOW | aya/src/bpf.rs | 181 | /// )?) | COMMENT |
| LOW | aya/src/bpf.rs | 201 | /// ```no_run | COMMENT |
| LOW | aya/src/bpf.rs | 221 | + std::panic::RefUnwindSafe | COMMENT |
| LOW | aya/src/bpf.rs | 241 | /// | COMMENT |
| LOW | aya/src/bpf.rs | 261 | /// # Example | COMMENT |
| LOW | aya/src/bpf.rs | 281 | /// From Rust eBPF, a global variable can be defined using `Global` - please refer to the `aya-ebpf` documentation. | COMMENT |
| 391 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/rust-toolchain-pins.py | 5 | CODE | |
| LOW | scripts/rust_toolchains.py | 5 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ebpf/aya-ebpf/src/maps/xdp/mod.rs | 15 | /// # Return value | COMMENT |