Panther: Protocol formal Analysis and formal Network Threat Evaluation Resources
Project description
PANTHER — Protocol Analysis and Testing Harness for Extensible Research
PANTHER is a plugin‑based, research‑grade test harness that lets you design, reproduce, and analyse complex network‑protocol experiments without hand‑rolling scripts or bespoke infrastructure.
[!NOTE] "What PANTHER Solves"
- Protocol Validation: Test QUIC or custom protocol implementations under failure, jitter, or adverse timing
- Performance Profiling: Analyze CPU, heap, and syscall characteristics across different builds or OS kernels
- Formal Verification: Run conformance checks (Ivy) in deterministic network simulation (Shadow)
Core characteristics:
▸ Reproducible: every experiment is defined in a single YAML file and executed in an isolated container environment.
▸ Extensible: a plugin system adds new protocols, services, profilers, or network back‑ends with minimal boilerplate.
▸ Multi‑audience: useful to academic researchers, industrial developers, security analysts, SRE teams, and educators.esting Harness for Extensible Research
[!WARNING] CLI and core being refactored, some deadcode and legacy or unimplemented code remains.
[!WARNING] ARM still need some works, Z3 generate maths errors and docker modules is being refactored in consequences (thus introducing potencial bugs) This branch is more stable (but not supporting ARM at all) - development-scp-refactor
🔄 Quick Workflow Overview
PANTHER experiments follow a 4-phase execution model:
Phase 1: Initialization
- Load configurations and validate experiment setup
- Initialize plugin system and service managers
- Create test case instances
Phase 2: Plugin Loading & Service Setup
- Discover and load protocol/implementation plugins
- Create service managers for each IUT (Implementation Under Test)
- Generate deployment and execution commands
Phase 3: Environment Deployment
- Setup network environment (Docker Compose, localhost, or Shadow NS)
- Build container images for protocol implementations
- Deploy services with proper networking and monitoring
Phase 4: Test Execution
- Start services and execute test scenarios
- Monitor execution with automatic packet capture
- Collect results, logs, and performance metrics
- Teardown environment and generate reports
Key Features:
- Reproducible: Every experiment defined in single YAML configuration
- Containerized: Isolated execution environments with Docker
- Event-driven: Real-time monitoring and coordination
- Extensible: Plugin architecture for new protocols and environments
For detailed workflow documentation, see workflow.md.
System Requirements
| Component | Minimum | Notes |
|---|---|---|
| Python | 3.10 | Use venv for isolation for main functionality. |
| Docker | 27.x | Required for all orchestration modes. |
pyproject.toml is the source of truth for Python dependencies.
requirements.txt is a frozen snapshot—do not edit.
[!NOTE] (TODO) We propose to install
slimin our builder, fasten container size.
[!WARNING] I tried but it seems that it is not as straight forward as it seems, need more research before using that.
📑 Table of Contents
Getting Started
System Features
- Configuration Management - Advanced configuration validation, auto-fixing, and protocol-aware port management
- Core Architecture - Experiment orchestration, fast-fail system, and reporting
Plugins
PANTHER's extensible plugin architecture enables seamless integration of new protocols, implementations, testing frameworks, and environments. The modern inheritance-based system provides 47.2% average code reduction while ensuring consistent behavior across all plugin types.
Core Plugin Categories:
- Overview - Architecture and design patterns
- Inventory - Complete plugin catalog
- Environment Plugins - Network simulation and execution environments
- Overview - Environment plugin architecture
- Network Environment - Docker Compose, localhost, Shadow NS
- Execution Environment - Performance profiling and analysis
- Protocol Plugins - Protocol definitions and behavioral specifications
- Overview - Protocol plugin patterns
- Client-Server Protocols - QUIC, HTTP, TCP/UDP variants
- Peer-to-Peer Protocols - BitTorrent, WebRTC protocols
- Service Plugins - Implementation testing and verification services
- Overview - Service plugin architecture
- Implementation Under Tests (IUTs) - picoquic, aioquic, quiche, quinn
- Testing Services - Ivy formal verification, custom testers
Plugin System Features:
- Automatic Discovery: Decorator-based registration with metadata validation
- Dependency Management: Semantic versioning and automatic dependency resolution
- Version Configurations: Protocol version-specific configurations (RFC9000, draft-29, etc.)
- Event Integration: Built-in event emission and coordination across plugin lifecycle
- Configuration Schema: JSON Schema-based validation with auto-fixing capabilities
- Performance Optimization: Class caching and lazy loading for improved startup time
Developer Guide
- Contributing
- Plugin Development
- Overview
- Environment Plugins
- Protocol Plugins
- Service Plugins
Project Information
Documentation
For detailed information on using PANTHER, see the:
Contributing
Contributions are welcome! To get started:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Submit a pull request with a clear description of your changes.
For more details, see the Contribution Guide.
Contact
For support or inquiries, please contact:
- ElNiak
- Open an issue on the GitHub repository.
:book: References
For further reading and context on the topics and methodologies used in this tool, refer to the following articles:
- Crochet, C., Aoga, J., & Legay, A. (2024). Formally Discovering and Reproducing Network Protocols Vulnerabilities (NordSec24).
@techreport{crochet2024formally,
title={Formally Discovering and Reproducing Network Protocols Vulnerabilities},
author={Crochet, Christophe and Aoga, John and Legay, Axel},
year={2024}
url={https://dial.uclouvain.be/pr/boreal/object/boreal:292503}
}
- Rousseaux, T., Crochet, C., Aoga, J., Legay, A. (2024). Network Simulator-Centric Compositional Testing. In: Castiglioni, V., Francalanza, A. (eds) Formal Techniques for Distributed Objects, Components, and Systems. FORTE 2024. Lecture Notes in Computer Science, vol 14678. Springer, Cham. https://doi.org/10.1007/978-3-031-62645-6_10
@inproceedings{rousseaux2024network,
title={Network Simulator-Centric Compositional Testing},
author={Rousseaux, Tom and Crochet, Christophe and Aoga, John and Legay, Axel},
booktitle={International Conference on Formal Techniques for Distributed Objects, Components, and Systems},
pages={177--196},
year={2024},
organization={Springer},
doi={https://doi.org/10.1007/978-3-031-62645-6_10}
}
- Crochet, C., Rousseaux, T., Piraux, M., Sambon, J.-F., & Legay, A. (2021). Verifying quic implementations using ivy. In Proceedings of the 2021 Workshop on Evolution, Performance and Interoperability of QUIC. DOI
@inproceedings{crochet2021verifying,
title={Verifying QUIC implementations using Ivy},
author={Crochet, Christophe and Rousseaux, Tom and Piraux, Maxime and Sambon, Jean-Fran{\c{c}}ois and Legay, Axel},
booktitle={Proceedings of the 2021 Workshop on Evolution, Performance and Interoperability of QUIC},
pages={35--41},
year={2021},
url={https://dl.acm.org/doi/abs/10.1145/3488660.3493803}
}
- Crochet, C., & Sambon, J.-F. (2021). Towards verification of QUIC and its extensions. (Master's thesis, UCL - Ecole polytechnique de Louvain). Available at UCLouvain. Keywords: QUIC, Formal Verification, RFC, IETF, Specification, Ivy, Network.
@article{crochettowards,
title={Towards verification of QUIC and its extensions},
author={Crochet, Christophe and Sambon, Jean-Fran{\c{c}}ois}
year={2021},
url={https://dial.uclouvain.be/downloader/downloader.php?pid=thesis%3A30559&datastream=PDF_01&cover=cover-mem}
}
For other useful resources, see the following:
-
McMillan, K. L., & Padon, O. (2018). Deductive Verification in Decidable Fragments with Ivy. In A. Podelski (Ed.), Static Analysis - 25th International Symposium, SAS 2018, Freiburg, Germany, August 29-31, 2018, Proceedings (pp. 43–55). Springer. DOI - PDF
-
Taube, M., Losa, G., McMillan, K. L., Padon, O., Sagiv, M., Shoham, S., Wilcox, J. R., & Woos, D. (2018). Modularity for decidability of deductive verification with applications to distributed systems. In Proceedings of the 39th ACM SIGPLAN Conference on Programming Language Design and Implementation, PLDI 2018, Philadelphia, PA, USA, June 18-22, 2018 (pp. 662–677). ACM. DOI
-
Padon, O., Hoenicke, J., McMillan, K. L., Podelski, A., Sagiv, M., & Shoham, S. (2018). Temporal Prophecy for Proving Temporal Properties of Infinite-State Systems. In 2018 Formal Methods in Computer Aided Design, FMCAD 2018, Austin, TX, USA, October 30 - November 2, 2018 (pp. 1–11). IEEE. DOI - PDF
-
Padon, O., McMillan, K. L., Panda, A., Sagiv, M., & Shoham, S. (2016). Ivy: safety verification by interactive generalization. In Proceedings of the 37th ACM SIGPLAN Conference on Programming Language Design and Implementation, PLDI 2016, Santa Barbara, CA, USA, June 13-17, 2016 (pp. 614–630). ACM. DOI
-
McMillan, K. L. (2016). Modular specification and verification of a cache-coherent interface. In 2016 Formal Methods in Computer-Aided Design, FMCAD 2016, Mountain View, CA, USA, October 3-6, 2016 (pp. 109–116). DOI
-
McMillan, K. L., & Zuck, L. D. (2019). Formal specification and testing of QUIC. In Proceedings of ACM Special Interest Group on Data Communication (SIGCOMM’19). ACM. Note: to appear. PDF
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file panther_net-1.2.0.tar.gz.
File metadata
- Download URL: panther_net-1.2.0.tar.gz
- Upload date:
- Size: 29.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
685d62cbab302b0db5a3d45033c48249879fd22b3432e1c0c5fe4c14b6a3237c
|
|
| MD5 |
07d141a34f3dcd769ae62c81e07996ce
|
|
| BLAKE2b-256 |
f7e725242123577e5569beff7d99f6c4609d4fb650ad09dc30c59436bb9d396d
|
Provenance
The following attestation bundles were made for panther_net-1.2.0.tar.gz:
Publisher:
python-publish.yml on ElNiak/PANTHER
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
panther_net-1.2.0.tar.gz -
Subject digest:
685d62cbab302b0db5a3d45033c48249879fd22b3432e1c0c5fe4c14b6a3237c - Sigstore transparency entry: 991662796
- Sigstore integration time:
-
Permalink:
ElNiak/PANTHER@5227fff2fd2de8c9cc8c8df4274ac7e291746592 -
Branch / Tag:
refs/tags/v1.2.0 - Owner: https://github.com/ElNiak
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@5227fff2fd2de8c9cc8c8df4274ac7e291746592 -
Trigger Event:
push
-
Statement type:
File details
Details for the file panther_net-1.2.0-py3-none-any.whl.
File metadata
- Download URL: panther_net-1.2.0-py3-none-any.whl
- Upload date:
- Size: 31.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5bb4ffed2a04c1c0ef430e0731688808462066b843188471562635632f7ba9a3
|
|
| MD5 |
1a96ead75723b3cbda4fedd2c4c5f23e
|
|
| BLAKE2b-256 |
557415c5bc0bbe7410f0390895157baf5eb5e38a596764c2bd9ba7b1284752dd
|
Provenance
The following attestation bundles were made for panther_net-1.2.0-py3-none-any.whl:
Publisher:
python-publish.yml on ElNiak/PANTHER
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
panther_net-1.2.0-py3-none-any.whl -
Subject digest:
5bb4ffed2a04c1c0ef430e0731688808462066b843188471562635632f7ba9a3 - Sigstore transparency entry: 991662803
- Sigstore integration time:
-
Permalink:
ElNiak/PANTHER@5227fff2fd2de8c9cc8c8df4274ac7e291746592 -
Branch / Tag:
refs/tags/v1.2.0 - Owner: https://github.com/ElNiak
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@5227fff2fd2de8c9cc8c8df4274ac7e291746592 -
Trigger Event:
push
-
Statement type: