Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
159 changes: 159 additions & 0 deletions scans/0patch-lsa-sentinel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
{
"schema_version": "2.5",
"program_path": "0patch-lsa-sentinel",
"language": "rust",
"frameworks": [],
"weak_points": [
{
"category": "UnsafeCode",
"location": "host-rust/src/ffi.rs",
"file": "host-rust/src/ffi.rs",
"severity": "High",
"description": "1 unsafe blocks in host-rust/src/ffi.rs",
"recommended_attack": [
"memory",
"concurrency"
],
"suppressed": true,
"test_context": "production"
},
{
"category": "UnboundedAllocation",
"location": "host-rust/src/collectors/opatch.rs",
"file": "host-rust/src/collectors/opatch.rs",
"severity": "Medium",
"description": "Potential unbounded allocation pattern detected in host-rust/src/collectors/opatch.rs",
"recommended_attack": [
"memory",
"cpu"
],
"test_context": "production"
},
{
"category": "SupplyChain",
"location": "flake.nix",
"file": "flake.nix",
"severity": "Low",
"description": "flake.nix declares inputs without narHash, rev pinning, or sibling flake.lock — dependency revision is unpinned in flake.nix. Suggested fix: run `nix flake update` to generate flake.lock.",
"recommended_attack": [],
"test_context": "production"
}
],
"statistics": {
"total_lines": 1723,
"unsafe_blocks": 1,
"panic_sites": 0,
"unwrap_calls": 0,
"allocation_sites": 4,
"io_operations": 4,
"threading_constructs": 0
},
"file_statistics": [
{
"file_path": "host-rust/src/ffi.rs",
"lines": 26,
"unsafe_blocks": 1,
"panic_sites": 0,
"unwrap_calls": 0,
"allocation_sites": 0,
"io_operations": 0,
"threading_constructs": 0
},
{
"file_path": "host-rust/src/collectors/opatch.rs",
"lines": 77,
"unsafe_blocks": 0,
"panic_sites": 0,
"unwrap_calls": 0,
"allocation_sites": 0,
"io_operations": 2,
"threading_constructs": 0
},
{
"file_path": "host-rust/src/collectors/snapshot.rs",
"lines": 76,
"unsafe_blocks": 0,
"panic_sites": 0,
"unwrap_calls": 0,
"safe_unwrap_calls": 1,
"allocation_sites": 2,
"io_operations": 2,
"threading_constructs": 0
},
{
"file_path": "host-rust/src/collectors/parse.rs",
"lines": 294,
"unsafe_blocks": 0,
"panic_sites": 0,
"unwrap_calls": 0,
"allocation_sites": 2,
"io_operations": 0,
"threading_constructs": 0
}
],
"recommended_attacks": [
"concurrency",
"memory",
"cpu"
],
"dependency_graph": {
"edges": [
{
"from": "host-rust/src/collectors/opatch.rs",
"to": "host-rust/src/collectors/snapshot.rs",
"relation": "shared_dir:host-rust/src/collectors",
"weight": 1.0
},
{
"from": "host-rust/src/collectors/snapshot.rs",
"to": "host-rust/src/collectors/parse.rs",
"relation": "shared_dir:host-rust/src/collectors",
"weight": 1.0
}
]
},
"taint_matrix": {
"rows": [
{
"source_category": "UnboundedAllocation",
"sink_axis": "memory",
"severity_value": 2.5,
"files": [
"host-rust/src/collectors/opatch.rs"
],
"frameworks": [],
"relation": "UnboundedAllocation->Memory"
},
{
"source_category": "UnsafeCode",
"sink_axis": "memory",
"severity_value": 3.5,
"files": [
"host-rust/src/ffi.rs"
],
"frameworks": [],
"relation": "UnsafeCode->Memory"
},
{
"source_category": "UnboundedAllocation",
"sink_axis": "cpu",
"severity_value": 2.5,
"files": [
"host-rust/src/collectors/opatch.rs"
],
"frameworks": [],
"relation": "UnboundedAllocation->Cpu"
},
{
"source_category": "UnsafeCode",
"sink_axis": "concurrency",
"severity_value": 3.5,
"files": [
"host-rust/src/ffi.rs"
],
"frameworks": [],
"relation": "UnsafeCode->Concurrency"
}
]
}
}
24 changes: 12 additions & 12 deletions scans/AcceleratorGate.jl.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,24 +81,14 @@
}
],
"recommended_attacks": [
"memory",
"cpu"
"cpu",
"memory"
],
"dependency_graph": {
"edges": []
},
"taint_matrix": {
"rows": [
{
"source_category": "DynamicCodeExecution",
"sink_axis": "cpu",
"severity_value": 3.5,
"files": [
"src/AcceleratorGate.jl"
],
"frameworks": [],
"relation": "DynamicCodeExecution->Cpu"
},
{
"source_category": "ProofDrift",
"sink_axis": "cpu",
Expand All @@ -120,6 +110,16 @@
],
"frameworks": [],
"relation": "DynamicCodeExecution->Memory"
},
{
"source_category": "DynamicCodeExecution",
"sink_axis": "cpu",
"severity_value": 3.5,
"files": [
"src/AcceleratorGate.jl"
],
"frameworks": [],
"relation": "DynamicCodeExecution->Cpu"
}
]
}
Expand Down
Loading
Loading