Detection of malicious VHD files for CVE-2025-24985# cve-2025-24985
Compute the number of cluster of a VHD file to detect overflow.
Supportted boot sectors:
- [x] MBR
- [x] GPT
## Usage
```sh
python -m cve_2025_24985 -f <path/to/file.vhd>
```
## Setup
### Nix
```sh
# With direnv:
direnv allow
# Or Without direnv:
nix develop
```
### Peotry
WIP
### Docker
WIP
## TODO:
- [x] Auto build libvhdi with poetry
- [ ] Setup poetry install
- [ ] Fix dockerfile with pyvhdi dependency
[4.0K] /data/pocs/10e82a7ea13057c90e5ef465ef00c197ec365b82
├── [4.0K] cve_2025_24985
│ ├── [2.2K] bpb.py
│ ├── [1.3K] cli.py
│ ├── [3.0K] dosmbr.py
│ ├── [ 0] __init__.py
│ ├── [ 63] __main__.py
│ └── [1.7K] uint32.py
├── [ 572] Dockerfile
├── [4.5K] flake.lock
├── [2.6K] flake.nix
├── [ 539] Makefile
├── [9.7K] poetry.lock
├── [ 436] pyproject.toml
└── [ 440] README.md
1 directory, 13 files