Skip to content

Commit

Permalink
Add technique db for mitre att&ck layer export
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkiros committed Oct 21, 2024
1 parent dd12390 commit 4cc4341
Show file tree
Hide file tree
Showing 5 changed files with 2,217 additions and 0 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/update_db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,72 @@ jobs:
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

update_techniques_db:
runs-on: ubuntu-latest
needs: update_cwe_db

steps:
- name: Checkout repository
uses: actions/checkout@v2
needs: update_cwe_db

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Pull latest changes
run: git pull

- name: Update TECHNIQUES DB
run: python update_cwe_db.py

- name: Commit and push changes
run: |
git config --global user.name "github-actions"
git config --global user.email "[email protected]"
git diff --quiet && git diff --staged --quiet || git add resources/cwe_db.json
git diff --staged --quiet || git commit -m "Update CWE DB"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

update_techniques_db:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
needs: update_cwe_db

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Pull latest changes
run: git pull

- name: Update TECHNIQUES DB
run: python update_cwe_db.py

- name: Commit and push changes
run: |
git config --global user.name "github-actions"
git config --global user.email "[email protected]"
git diff --quiet && git diff --staged --quiet || git add resources/cwe_db.json
git diff --staged --quiet || git commit -m "Update CWE DB"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ pip install -r requirements.txt
```sh
python update_capec.py
python update_cwe.py
python update_technique.py
```

### Get new CVEs
Expand Down
8 changes: 8 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
certifi==2024.8.30
charset-normalizer==3.4.0
et-xmlfile==1.1.0
idna==3.10
numpy==2.1.2
openpyxl==3.1.5
pandas==2.2.3
python-dateutil==2.9.0.post0
pytz==2024.2
requests==2.32.3
six==1.16.0
tqdm==4.66.5
tzdata==2024.2
urllib3==2.2.3
Loading

0 comments on commit 4cc4341

Please sign in to comment.