-
Notifications
You must be signed in to change notification settings - Fork 77
Feature/docs #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Feature/docs #9
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| name: Deploy Jekyll site to Pages | ||
|
|
||
| on: | ||
| push: | ||
| branches: ["main"] | ||
| paths: | ||
| - 'docs/**' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pages: write | ||
| id-token: write | ||
|
|
||
| concurrency: | ||
| group: "pages" | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Setup Pages | ||
| uses: actions/configure-pages@v5 | ||
| - name: Build with Jekyll | ||
| uses: actions/jekyll-build-pages@v1 | ||
| with: | ||
| source: ./docs/ | ||
| destination: ./_site | ||
| - name: Upload artifact | ||
| uses: actions/upload-pages-artifact@v3 | ||
|
|
||
| deploy: | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
| runs-on: ubuntu-latest | ||
| needs: build | ||
| steps: | ||
| - name: Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@v4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,3 +45,9 @@ build/ | |
| htmlcov/ | ||
| coverage.json | ||
| scratch_cov.py | ||
|
|
||
| # Docs Build | ||
| docs/_site/ | ||
| .jekyll-cache | ||
| docs/.jekyll-cache/ | ||
| _site/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,113 @@ | ||
| <div align="center"> | ||
| <br> | ||
| <img src=".github/banner.svg" alt="DeepZero" width="700"> | ||
| <br><br> | ||
| <p><b>Moteur de pipeline de recherche de vulnérabilités automatisé</b></p> | ||
| <p>Définissez des pipelines via YAML. DeepZero gère l'orchestration, le parallélisme, la tolérance aux pannes et l'état.</p> | ||
| <p> | ||
| <a href="https://github.com/416rehman/DeepZero/actions"><img src="https://img.shields.io/github/actions/workflow/status/416rehman/DeepZero/ci.yml?branch=main&style=flat-square" alt="CI"></a> | ||
| <a href="https://github.com/416rehman/DeepZero/blob/main/LICENSE"><img src="https://img.shields.io/github/license/416rehman/DeepZero?style=flat-square" alt="License"></a> | ||
| <img src="https://img.shields.io/badge/python-3.11+-blue?style=flat-square" alt="Python"> | ||
| <img src="https://img.shields.io/badge/platform-windows%20%7C%20linux-lightgrey?style=flat-square" alt="Platform"> | ||
| </p> | ||
| </div> | ||
|
|
||
| <br> | ||
|
|
||
| <div align="center"> | ||
| <img src=".github/terminal.svg" alt="Tableau de bord du terminal DeepZero" width="700"> | ||
| </div> | ||
|
|
||
| <br> | ||
|
|
||
| <div align="center"> | ||
| <a href="README.md">English</a> | <a href="README.zh-CN.md">简体中文</a> | <b>Français</b> | ||
| </div> | ||
|
|
||
| <br> | ||
|
|
||
| - 🔗 **Pipeline en YAML** - enchaînez de manière déclarative les étapes d'ingestion, de filtrage, de transformation et d'évaluation LLM | ||
| - ⚡ **Exécution parallèle** - ThreadPoolExecutor avec une concurrence configurable par étape | ||
| - 💾 **Exécutions reprenables** - état atomique par échantillon sur le disque ; appuyez sur Ctrl+C et relancez pour reprendre là où vous vous étiez arrêté | ||
| - 🤖 **Intégration LLM** - modèles de prompts Jinja2 avec n'importe quel fournisseur LLM via [LiteLLM](https://github.com/BerriAI/litellm) | ||
| - 🌐 **API REST (WIP)** - interrogez l'état de l'exécution et les données d'échantillons via HTTP (actuellement expérimental et incomplet) | ||
| - 🧩 **Extensible** - écrivez des processeurs personnalisés sous forme de classes Python, et référencez-les par leur chemin dans YAML | ||
|
|
||
| --- | ||
|
|
||
| ## 📚 Documentation | ||
|
|
||
| DeepZero dispose d'une documentation exhaustive couvrant l'architecture, les schémas de pipeline, les références de la CLI et le développement de processeurs personnalisés. | ||
|
|
||
| 👉 **[Lisez la documentation officielle ici (en anglais)](https://416rehman.github.io/DeepZero/)** | ||
|
|
||
| --- | ||
|
|
||
| ## ⚡️ Démarrage Rapide | ||
|
|
||
| DeepZero nécessite un corpus cible de fichiers à analyser et une configuration de pipeline détaillant comment les traiter. | ||
|
|
||
| 1. **Cloner & Installer (Python 3.11+)** | ||
| ```bash | ||
| git clone https://github.com/416rehman/DeepZero.git | ||
| cd DeepZero | ||
| pip install -e . | ||
| ``` | ||
|
|
||
| 2. **Configurer l'Environnement** | ||
| ```bash | ||
| cp .env.example .env | ||
| ``` | ||
|
|
||
| 3. **Exécuter un Pipeline** | ||
| ```bash | ||
| deepzero run C:\drivers -p .\pipelines\loldrivers\pipeline.yaml | ||
| ``` | ||
|
|
||
| Pour des instructions de configuration détaillées et des exemples de corpus, consultez la [Documentation de Démarrage Rapide](https://416rehman.github.io/DeepZero/overview/quickstart.html). | ||
|
|
||
| --- | ||
|
|
||
| ## 📁 Structure du Dépôt | ||
|
|
||
| ```text | ||
| src/deepzero/ | ||
| ├── api/ # API REST (starlette) | ||
| ├── engine/ # orchestration, persistance de l'état, exécution du pipeline | ||
| └── stages/ # processeurs intégrés (map, reduce, ingest) | ||
|
|
||
| processors/ # processeurs externes (fournis comme exemples) | ||
| ├── ghidra_decompile/ # décompilateur headless ghidra (MapProcessor) | ||
| ├── loldrivers_filter/ # filtre d'exclusion de hachage loldrivers.io (MapProcessor) | ||
| ├── pe_ingest/ # parseur d'en-tête PE et extracteur de métadonnées (IngestProcessor) | ||
| └── semgrep_scanner/ # scanneur de lots semgrep (BulkMapProcessor) | ||
|
|
||
| pipelines/ | ||
| └── loldrivers/ # pipeline de recherche de vulnérabilités pour les pilotes noyau BYOVD | ||
| ├── pipeline.yaml | ||
| ├── assessment.j2 # modèle de prompt LLM | ||
| └── rules/ # règles semgrep | ||
|
|
||
| docs/ # Documentation GitHub Pages basée sur Jekyll | ||
| tests/ # suite de tests pytest | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| ## 🤝 Contribuer | ||
|
|
||
| L'intégration continue (CI) s'exécute sur Python 3.11 et 3.12 via GitHub Actions. | ||
|
|
||
| Exécutez les vérifications de linting et de sécurité avant de soumettre : | ||
|
|
||
| ```bash | ||
| ruff check . && ruff format --check . && bandit -ll -ii -c pyproject.toml -r . | ||
| ``` | ||
|
|
||
| Veuillez consulter le [Guide de Contribution](CONTRIBUTING.md) et le [Code de Conduite](CODE_OF_CONDUCT.md) avant de soumettre une pull request. | ||
|
|
||
| --- | ||
|
|
||
| ## 📄 Licence | ||
|
|
||
| DeepZero est publié sous la [Licence MIT](LICENSE). | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This Quickstart link targets
/DeepZero/overview/quickstart.html, but the published docs live under locale directories (e.g./DeepZero/fr/overview/quickstart.htmlor/DeepZero/en/overview/quickstart.html). As written, the link will 404. Please update it to the correct locale path.