pyrograph 0.1.0

GPU-accelerated taint analysis for supply chain malware detection
Documentation
1
2
3
4
5
6
7
8
9
#![cfg(feature = "js")]

#[test]
fn print_graph() {
    let js = "import { exec } from 'child_process'; exec(process.env.TEST);";
    let graph = pyrograph::parse::parse_js(js, "t.js").unwrap();
    let findings = pyrograph::analyze(&graph).unwrap();
    println!("Findings: {:?}", findings);
}