scikit-survival
Pass
Audited by Gen Agent Trust Hub on Oct 2, 2026
Risk Level: SAFEDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The script
scripts/validate_survival_csv.pyuses a dynamic import__import__("numpy")to calculate the median survival time for the validation report. This is a benign use of a hardcoded string to access a standard library function. - [INDIRECT_PROMPT_INJECTION]: The skill processes external data via CSV files. It mitigates injection risks through several layers of validation:
- Ingestion points: Data enters through the
read_csvhelper inscripts/_common.py, which enforces size limits (32MB) and row/feature bounds. - Boundary markers: The skill treats data as strictly structured, converting inputs into specific NumPy and pandas dtypes (boolean events, float times) before further processing.
- Capability inventory: Scripts can write local files (
.json,.md,.npy,.npz) using atomic write patterns, but they lack network capabilities. - Sanitization: All inputs are passed through normalization functions (e.g.,
normalize_binary_event,normalize_positive_times) that reject unexpected characters, non-finite values, and invalid codes. - [REMOTE_CODE_EXECUTION]: The skill uses
numpy.loadandnumpy.savewithallow_pickle=Falseto prevent unsafe deserialization of local data archives. Installation instructions target pinned versions of established scientific libraries.
Audit Metadata