sarand report — hybrid-project
Generated 2026-01-01 12:00:00 on kali · scan engine: Rust core
Quick Context
Project: hybrid-project -- Python (Python, Rust, Go); type workspace; build pip + cargo + go mod
Declared frameworks (from manifests, not verified in code): FastAPI (fastapi, runtime; pyproject.toml); pytest (pytest; requirements.txt)
Structure: src/, (1 top-level file(s)) -- 196 files, 12000 LOC
Tests: pytest: passed, cargo test: failed, go test: skipped
Quality: ruff: passed, cargo clippy: failed
Security: bandit: passed, gitleaks: failed
Health: 76.0/100.0 (grade C), execution coverage 86% (6 of 7 requested checks ran to a verdict)
Critical findings:
- 1 potential secret was found in tracked source
- Security findings were reported by: gitleaks. These are tool results, not proof that the project is exploitable.
Risks:
- 3 check(s) failed: cargo test, cargo clippy, gitleaks
- 1 check(s) skipped, so the score does not reflect them: go test
- tools reported 2 error(s) and 3 warning(s)
- 2 potential secret(s) found; affected files are excluded from the report
- 2 credential-shaped file(s) excluded from the report
- working tree has uncommitted changes
Read first: src/module_0.py, src/module_1.py, src/module_2.py, src/module_3.py, src/module_4.py, src/module_5.py, src/module_6.py, src/module_7.py, src/module_8.py, src/module_9.py
Architecture and Risks
Entry points:
- src/main.py
- src/lib.rs
- cmd/server/main.go
Risks (rule-based):
- HEALTH-CRITICAL (high): 1 critical failure(s) in the health score [health.critical_failures]
- SEC-CHECK-FAILED (high): 1 of 2 security check(s) failed [security_results[kind=gitleaks]]
- SECRET-PATTERNS (warning): 1 secret-pattern match(es) outside test fixtures [secret_findings[is_test_fixture=false]]
- DUPLICATE-FILES (info): 1 group(s) of files with identical content [stats.duplicate_files]
- GIT-STATE (info): working copy has uncommitted changes, 1 commit(s) ahead of upstream [git.dirty; git.ahead]
Limitations:
- HEALTH-CRITICAL: Covers only the checks that ran.
- SEC-CHECK-FAILED: A tool result, not a proven vulnerability.
- SECRET-PATTERNS: Pattern matches, not confirmed leaked secrets; only a count is shown.
- DUPLICATE-FILES: Identical content among the files the scan hashed (its size cap applies).
- GIT-STATE: Says nothing about security or quality.
Python — workspace (pip + cargo + go mod)
Languages: Python, Rust, Go
Entry points: src/main.py, src/lib.rs, cmd/server/main.go
Assembly dialects: x86 (NASM): 2 file(s), ARM: 1 file(s)
76.0/100 (C)
Execution coverage: 86% (6 of 7 requested checks ran to a verdict)
Not run: go test (skipped: go not installed)
Execution coverage counts which requested checks ran to a verdict. It does not measure how complete or correct the analysis is.
| Tests | 18.0 |
| Quality | 15.0 |
| Security | 12.0 |
| Git | 10.0 |
| Code | 11.0 |
| Tooling | 10.0 |
Critical:
- 1 potential secret was found in tracked source
Recommendations:
- Fix the failing cargo test
- Rotate the leaked credential
⚠ Secrets
Excluded (credential-shaped filenames, never read — AGENTS.md §4.10):
Excluded (content matched a secret pattern — see findings below):
| File | Line | Pattern |
|---|
config/secrets.env | 3 | AWS Secret Key |
tests/fixtures/dummy_key.py | 1 | Generic API Key |
Project statistics
Total files: 196 · LOC: 12000
By extension: .ext0 (12), .ext1 (11), .ext2 (10), .ext3 (9), .ext4 (8), .ext5 (7), .ext6 (6), .ext7 (5), .ext8 (4), .ext9 (3)
Binary: 2 · Hidden: 3 · Empty: 1 · Broken symlinks: 1
AI Summary
This is a hybrid Python/Rust/Go workspace with one failing test.
Test results
pytest PASS
120 passed
cargo test FAIL
1 failed, 40 passed
Full output
test add ... FAILED
thread 'main' panicked
go test SKIP
go not installed
Quality checks
ruff PASS
All checks passed!
cargo clippy FAIL
2 warnings
Full output
warning: unused import
warning: needless clone
Security checks
bandit PASS
No issues identified.
gitleaks FAIL
1 leak found
Full output
1 leak found
Known issues
- Security findings were reported by: gitleaks. These are tool results, not proof that the project is exploitable.
Failure classification
| Tool | Group | Category | Cause | Subject | Evidence | Id |
|---|
| cargo test | test | test_failure | exit_code | Rust tests | - | test_failure:e6da02efe80d |
| cargo clippy | quality | lint_failure | exit_code | Rust lints | - | lint_failure:986381caf840 |
| gitleaks | security | security_finding_detected | exit_code | secret scanning | leak-reported | security_finding_detected:b48a5277b74b |
Errors detected (2)
| Source | Message |
|---|
| cargo test | add() off by one |
| gitleaks | possible API key |
Warnings detected (3)
| Source | Message |
|---|
| ruff | line too long |
| clippy | unused import |
| clippy | needless clone |
Project tree
hybrid-project/
├── src/
│ ├── main.py
│ └── lib.rs
└── README.md
Included files (3 included / 1 skipped / 2 excluded)
src/main.py (28.0 B)
def main():
print("hi")
src/lib.rs (48.0 B)
pub fn add(a: i32, b: i32) -> i32 {
a + b
}
README.md (14.0 B)
# Hybrid demo