sinf 0.1.0

Library for obtaining in-depth system information at both the hardware and software levels
Documentation
# Security notes

`sinf` reads local system state through OS interfaces. It does not open
network connections, execute remote code or modify the system.

## Threat model

The main inputs are kernel-managed files and syscalls (`/proc`, `/sys`,
`sysctl`, Win32/WMI, IOKit). They are treated as potentially malformed but not
as a privilege boundary: if the kernel is compromised, the library is
compromised too.

Relevant risks:

- panic or unbounded allocation on truncated DMI/EDID/proc data;
- out-of-range identifiers (IP prefixes, MAC addresses, PIDs);
- unsafe FFI at platform boundaries;
- accidental command execution or PATH lookups;
- vulnerable or yanked dependencies;
- compromised CI actions or over-privileged workflows.

## Hardening applied

- Public domain modules use `#![forbid(unsafe_code)]`; OS access is behind safe platform wrappers.
- IP network parsing rejects prefixes outside IPv4/IPv6 ranges, including
  through serde.
- DMI tables are size-capped before parsing; EDID input is size-capped.
- Parser tests cover truncated and garbage input; DMI, EDID, proc stat and diskstats have `cargo-fuzz` targets.
- Windows process termination calls `TerminateProcess` directly instead of
  spawning `taskkill.exe`.
- GitHub Actions run with `contents: read` by default and are pinned by commit SHA.
- A monthly workflow runs `cargo audit`, `cargo deny` and the security test suite.
- Dependabot watches Cargo and GitHub Actions dependencies.

## Maturity and limits

Hardware inventory is implemented on Linux only. Other platforms return
`Error::Unsupported`. FFI-backed platform code still needs platform-specific
review and CI coverage. GitHub Actions are referenced by version tags; pinning
them to commit SHAs is now applied in this repository.

## Reporting

See [SECURITY.md](../../SECURITY.md).