Stage 01 · Implemented
Static structural analysis
A Windows program (PE file) is a documented data structure. CyberScan parses it with pefile: the header, each section's flags and size, the import table, the version resource, and the Authenticode signature. Nothing is loaded or executed.
- Input
- File bytes, SHA-256, magic bytes
- Output
- Sections (writable/executable, entropy), imports, claimed identity, signature state
- Contributes
- Suspicious imports, writable + executable sections, and a name or version resource that contradicts the program's capabilities
Source: core/pe_decompiler.py, core/authenticode.py, core/dissonance.py
bits = Σc −log2 p(c | role) · harm(c)
The dissonance engine reduces what a program says it is (file name, FileDescription, ProductName) to a role, then reads what its imports say it can do. Each capability costs −log2 of the probability that a benign program of that role has it, weighted by potential harm. A browser that uses the network costs almost nothing. A "photo viewer" that writes into other processes costs many bits.
- p = 0.51 bit
- p = 0.016.6 bits
- p = 0.00110 bits
Probabilities start from an expert prior (worth 20 programs per role) and are refined from benign software only, so no malware corpus is needed.