# pradiptanararayaa/digitalsign-checker architecture

> Architecture diagram of the GitHub repository pradiptanararayaa/digitalsign-checker, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/pradiptanararayaa/digitalsign-checker
- Repository: https://github.com/pradiptanararayaa/digitalsign-checker

## Overview

SigCheck is a Python command-line utility for Windows file integrity and signature assessment. Its documented workflow accepts interactive or command-line scan requests, gathers target files (or process modules/loaded drivers), examines Authenticode and certificate details, computes hashes and metadata, applies trust and vulnerability configuration, and presents or saves results. The single indexed source file contains the runtime; excerpts confirm parts of PowerShell verification, CIRCL lookup, verdict logic, configuration, and driver scanning. Other feature links reflect README capabilities and are not individually verified in the excerpts.

Main entry points: [`check.py`](https://github.com/pradiptanararayaa/digitalsign-checker/blob/main/check.py) (CLI and orchestration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_scan["Scan inputs"]
  node_cli["CLI and orchestration<br/>[check.py]"]
  node_target_gather["Target gathering<br/>[check.py]"]
  node_process_scan["Process scanning<br/>[check.py]"]
  node_driver_scan["Driver scanning<br/>[check.py]"]
end

subgraph group_inspection["File inspection"]
  node_authenticode["Authenticode verification<br/>[check.py]"]
  node_cert_diagnostics["Certificate diagnostics<br/>[check.py]"]
  node_metadata["File metadata<br/>[check.py]"]
  node_hashing["File hashing<br/>[check.py]"]
  node_hashlookup["CIRCL Hashlookup<br/>[check.py]"]
end

subgraph group_assessment["Trust assessment"]
  node_config["Trust configuration<br/>[check.py]"]
  node_publisher_check["Publisher verification<br/>[check.py]"]
  node_verdict["Verdict assessment<br/>[check.py]"]
end

subgraph group_results["Results and reporting"]
  node_console["Console output<br/>[check.py]"]
  node_json_report["JSON report<br/>[check.py]"]
end

node_user(("Operator"))
node_circl_api["CIRCL API"]

node_user -->|"starts scan"| node_cli
node_cli -->|"gathers targets"| node_target_gather
node_cli -.->|"scans PID"| node_process_scan
node_cli -->|"scans drivers"| node_driver_scan
node_target_gather -.->|"checks signatures"| node_authenticode
node_target_gather -.->|"reads metadata"| node_metadata
node_target_gather -.->|"computes hashes"| node_hashing
node_authenticode -.->|"reports chain"| node_cert_diagnostics
node_hashing -.->|"submits SHA-256"| node_hashlookup
node_hashlookup -->|"queries hash"| node_circl_api
node_cli -->|"loads settings"| node_config
node_authenticode -.->|"provides publisher"| node_publisher_check
node_config -.->|"supplies allowlist"| node_publisher_check
node_publisher_check -.->|"sets trust"| node_verdict
node_driver_scan -->|"checks driver list"| node_verdict
node_cli -.->|"prints results"| node_console
node_cli -.->|"saves report"| node_json_report

click node_cli "https://github.com/pradiptanararayaa/digitalsign-checker/blob/main/check.py"
click node_target_gather "https://github.com/pradiptanararayaa/digitalsign-checker/blob/main/check.py"
click node_process_scan "https://github.com/pradiptanararayaa/digitalsign-checker/blob/main/check.py"
click node_driver_scan "https://github.com/pradiptanararayaa/digitalsign-checker/blob/main/check.py"
click node_authenticode "https://github.com/pradiptanararayaa/digitalsign-checker/blob/main/check.py"
click node_cert_diagnostics "https://github.com/pradiptanararayaa/digitalsign-checker/blob/main/check.py"
click node_metadata "https://github.com/pradiptanararayaa/digitalsign-checker/blob/main/check.py"
click node_hashing "https://github.com/pradiptanararayaa/digitalsign-checker/blob/main/check.py"
click node_hashlookup "https://github.com/pradiptanararayaa/digitalsign-checker/blob/main/check.py"
click node_config "https://github.com/pradiptanararayaa/digitalsign-checker/blob/main/check.py"
click node_publisher_check "https://github.com/pradiptanararayaa/digitalsign-checker/blob/main/check.py"
click node_verdict "https://github.com/pradiptanararayaa/digitalsign-checker/blob/main/check.py"
click node_console "https://github.com/pradiptanararayaa/digitalsign-checker/blob/main/check.py"
click node_json_report "https://github.com/pradiptanararayaa/digitalsign-checker/blob/main/check.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cli,node_target_gather,node_process_scan,node_driver_scan toneBlue
class node_authenticode,node_cert_diagnostics,node_metadata,node_hashing,node_hashlookup toneAmber
class node_config,node_publisher_check,node_verdict,node_circl_api toneMint
class node_console,node_json_report toneRose
class node_user toneIndigo
```

## Components

### Scan inputs

- [CLI and orchestration](https://github.com/pradiptanararayaa/digitalsign-checker/blob/main/check.py): `check.py`
- [Target gathering](https://github.com/pradiptanararayaa/digitalsign-checker/blob/main/check.py): `check.py`
- [Process scanning](https://github.com/pradiptanararayaa/digitalsign-checker/blob/main/check.py): `check.py`
- [Driver scanning](https://github.com/pradiptanararayaa/digitalsign-checker/blob/main/check.py): `check.py`

### File inspection

- [Authenticode verification](https://github.com/pradiptanararayaa/digitalsign-checker/blob/main/check.py): `check.py`
- [Certificate diagnostics](https://github.com/pradiptanararayaa/digitalsign-checker/blob/main/check.py): `check.py`
- [File metadata](https://github.com/pradiptanararayaa/digitalsign-checker/blob/main/check.py): `check.py`
- [File hashing](https://github.com/pradiptanararayaa/digitalsign-checker/blob/main/check.py): `check.py`
- [CIRCL Hashlookup](https://github.com/pradiptanararayaa/digitalsign-checker/blob/main/check.py): `check.py`

### Trust assessment

- [Trust configuration](https://github.com/pradiptanararayaa/digitalsign-checker/blob/main/check.py): `check.py`
- [Publisher verification](https://github.com/pradiptanararayaa/digitalsign-checker/blob/main/check.py): `check.py`
- [Verdict assessment](https://github.com/pradiptanararayaa/digitalsign-checker/blob/main/check.py): `check.py`

### Results and reporting

- [Console output](https://github.com/pradiptanararayaa/digitalsign-checker/blob/main/check.py): `check.py`
- [JSON report](https://github.com/pradiptanararayaa/digitalsign-checker/blob/main/check.py): `check.py`

### Other components

- **Operator**
- **CIRCL API**

## Connections

- Operator → CLI and orchestration: starts scan (evidence: `README.md`)
- CLI and orchestration → Target gathering: gathers targets (evidence: `check.py`)
- CLI and orchestration → Process scanning: scans PID (evidence: `README.md`)
- CLI and orchestration → Driver scanning: scans drivers (evidence: `README.md`)
- Target gathering → Authenticode verification: checks signatures (evidence: `check.py`)
- Target gathering → File metadata: reads metadata (evidence: `check.py`)
- Target gathering → File hashing: computes hashes (evidence: `check.py`)
- Authenticode verification → Certificate diagnostics: reports chain (evidence: `check.py`)
- File hashing → CIRCL Hashlookup: submits SHA-256 (evidence: `check.py`)
- CIRCL Hashlookup → CIRCL API: queries hash (evidence: `README.md`)
- CLI and orchestration → Trust configuration: loads settings (evidence: `check.py`)
- Authenticode verification → Publisher verification: provides publisher (evidence: `check.py`)
- Trust configuration → Publisher verification: supplies allowlist (evidence: `check.py`)
- Publisher verification → Verdict assessment: sets trust (evidence: `check.py`)
- Driver scanning → Verdict assessment: checks driver list (evidence: `check.py`)
- CLI and orchestration → Console output: prints results (evidence: `check.py`)
- CLI and orchestration → JSON report: saves report (evidence: `check.py`)
