Expand description

Parse a stalkerware-indicators yaml into a list of Rules.

Example

use anyhow::Context;
use std::fs;

fn main() -> anyhow::Result<()> {
    let buf = fs::read("test_data/ioc-2022-12-15.yaml")
        .context("Failed to read ioc yaml file")?;

    let rules = stalkerware_indicators::parse_from_buf(&buf);
    for rule in rules {
        println!("Rule: {:?}", rule);
    }

    Ok(())
}

Modules

Structs

Struct for C2 infos
A rule entry that lists indicators of compromise for a strain of stalkerware

Functions

Load a yaml ioc.yaml from a byte slice
Load a yaml ioc.yaml from the file system