DEV Community

RelunSec
RelunSec

Posted on

New winaudit crate designed for Windows Security Assessment | Audit.

Hello everyone,

I released now a new Rust crate named winaudit and documentation in Docs

winaudit offers Windows system and security audit checks that can be integrated directly into your Win32 or Rust applications.

It is designed for

  • Windows developers

  • System utility creators

  • Security tools

  • Desktop software needing env checks

  • IT / sysadmin automation

  • Auditing and compliance tools

What it exposes?

winaudit exposes a collections of Windows system checks like:

  • OS informations.

  • Windows Updates availability.

  • Antiviruses status.

  • Firewalls status.

  • TPM And BitLocker detections.

  • UAC (User Account Control) configurations.

  • Secure Boot.

  • Network adapter checks (Requires "experimental" feature enabled in Cargo.toml).

  • Hardware audits (CPU, RAM, disks, etc ...).

  • Everything uses proper Win32 APIs.

Example Usage For Check is Windows Updates is Available:

use winaudit::is_update_available;

fn main() {
    match is_update_available() {
        Ok(true) => println!("Windows Update: updates are available."),
        Ok(false) => println!("Windows Update: system up to date."),
        Err(e) => eprintln!("An Error Occured: {e}"),
    }
}
Enter fullscreen mode Exit fullscreen mode

Highlights:

  • 100% native Win32 APIs usage.

  • Meaningful error reporting (Using custom WinAuditError).

  • No unsafe is required in the user code.

  • Strong Documententation (docs.rs now fully passing in v1.0.3).

  • Lightweight (no bloatwares of dependencies).

  • Designed for long-term extensions.

Stability:

A previous release v1.0.2 had docs issues, these problems are fully fixed in v0.1.3.
The crate builds cleanly with --all-features, examples work, and docs.rs passes.

Contributions

Any contributions are very welcome to Me in Github, I appreciate it i want my crate to be used in Real Win32 Entreprise grade or Non-Entreprise Windows Desktop Apps.

Top comments (0)