Some checks failed
Build and Test / build (debug, clang) (push) Has been cancelled
Build and Test / build (debug, gcc) (push) Has been cancelled
Build and Test / build (release, clang) (push) Has been cancelled
Build and Test / build (release, gcc) (push) Has been cancelled
Build and Test / docker (push) Has been cancelled
File node ids: include/strawberry/node_ids.hpp is now the only place they are built (file_<sha256> or file_path_<sha256 of path>). The three modules disagreed: correlation used a 16-digit path hash and behavior detections the raw path, so path-keyed evidence never met the rest. An exec detection with a known hash also writes a same_path edge from the path id to the content id. Source invariant R8 rejects hand-built file ids in src/ and include/. Processes carry the real uid and kernel comm: from the eBPF exec event (which now includes the uid) or /proc. Stored on process nodes and in process_exec telemetry (fields 14, 15). Command lines are redacted before any storage (capture_redact_cmdline, default on): sensitive flags and KEY=value pairs, Authorization/Bearer credentials, URL passwords, tokens used as URL user names, well-known token shapes (GitHub, GitLab, Slack, AWS key ids, sk-, JWTs) and mysql -p<password>. The rules repeat to a fixed point, so redaction is idempotent by construction. tests/test_redact.cpp covers the rules plus idempotence, size and planted-secret properties; fuzz_cmdline_redactor found two idempotence bugs and a leak (--password --token X) that are fixed here. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 lines
158 B
C++
3 lines
158 B
C++
// R8: a hand-built file node id (use file_node_id() from node_ids.hpp).
|
|
#include <string>
|
|
std::string id(const std::string& hash) { return "file_" + hash; }
|