stix2nx 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- stix2nx-0.1.0/.claude/settings.local.json +10 -0
- stix2nx-0.1.0/.github/ISSUE_TEMPLATE/bug_report.md +26 -0
- stix2nx-0.1.0/.github/ISSUE_TEMPLATE/feature_request.md +15 -0
- stix2nx-0.1.0/.github/workflows/ci.yml +26 -0
- stix2nx-0.1.0/.gitignore +13 -0
- stix2nx-0.1.0/CHANGELOG.md +13 -0
- stix2nx-0.1.0/CLAUDE.md +674 -0
- stix2nx-0.1.0/LICENSE +21 -0
- stix2nx-0.1.0/PKG-INFO +208 -0
- stix2nx-0.1.0/README.md +177 -0
- stix2nx-0.1.0/examples/apt_subgraph.png +0 -0
- stix2nx-0.1.0/examples/visualize_attack.py +152 -0
- stix2nx-0.1.0/pyproject.toml +44 -0
- stix2nx-0.1.0/src/stix2nx/__init__.py +53 -0
- stix2nx-0.1.0/src/stix2nx/converter.py +140 -0
- stix2nx-0.1.0/src/stix2nx/parsers.py +109 -0
- stix2nx-0.1.0/src/stix2nx/utils.py +126 -0
- stix2nx-0.1.0/tests/__init__.py +0 -0
- stix2nx-0.1.0/tests/conftest.py +562 -0
- stix2nx-0.1.0/tests/data/attack-subset.json +14314 -0
- stix2nx-0.1.0/tests/data/build_subset.py +381 -0
- stix2nx-0.1.0/tests/test_attack.py +123 -0
- stix2nx-0.1.0/tests/test_basic.py +110 -0
- stix2nx-0.1.0/tests/test_digraph.py +58 -0
- stix2nx-0.1.0/tests/test_merge.py +52 -0
- stix2nx-0.1.0/tests/test_sco.py +69 -0
- stix2nx-0.1.0/tests/test_sightings.py +67 -0
- stix2nx-0.1.0/tests/test_stix20.py +56 -0
- stix2nx-0.1.0/tests/test_stix21.py +95 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug Report
|
|
3
|
+
about: Report a bug in stix2nx
|
|
4
|
+
title: "[BUG] "
|
|
5
|
+
labels: bug
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
**Describe the bug**
|
|
9
|
+
A clear description of what went wrong.
|
|
10
|
+
|
|
11
|
+
**To reproduce**
|
|
12
|
+
Steps or minimal code example that triggers the bug.
|
|
13
|
+
|
|
14
|
+
**STIX input**
|
|
15
|
+
If possible, include the STIX bundle (or a minimal subset) that caused the issue.
|
|
16
|
+
Paste inline or attach as a file.
|
|
17
|
+
|
|
18
|
+
**Expected behavior**
|
|
19
|
+
What you expected to happen.
|
|
20
|
+
|
|
21
|
+
**Environment**
|
|
22
|
+
- Python version:
|
|
23
|
+
- stix2nx version:
|
|
24
|
+
- stix2 version:
|
|
25
|
+
- networkx version:
|
|
26
|
+
- OS:
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Feature Request
|
|
3
|
+
about: Suggest an enhancement
|
|
4
|
+
title: "[FEATURE] "
|
|
5
|
+
labels: enhancement
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
**What are you trying to do?**
|
|
9
|
+
Describe the task or workflow.
|
|
10
|
+
|
|
11
|
+
**Why doesn't current functionality cover this?**
|
|
12
|
+
What's missing or inconvenient.
|
|
13
|
+
|
|
14
|
+
**Proposed solution**
|
|
15
|
+
If you have one in mind.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
strategy:
|
|
13
|
+
matrix:
|
|
14
|
+
python-version: ["3.10", "3.11", "3.12", "3.13"]
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
19
|
+
uses: actions/setup-python@v5
|
|
20
|
+
with:
|
|
21
|
+
python-version: ${{ matrix.python-version }}
|
|
22
|
+
- name: Install dependencies
|
|
23
|
+
run: |
|
|
24
|
+
pip install -e ".[dev]"
|
|
25
|
+
- name: Run tests
|
|
26
|
+
run: pytest -v
|
stix2nx-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [0.1.0] - 2026-02-16
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- Initial release
|
|
7
|
+
- `stix_to_graph()` function converting STIX bundles to NetworkX graphs
|
|
8
|
+
- Support for STIX 2.0 and 2.1
|
|
9
|
+
- MultiDiGraph and DiGraph output options
|
|
10
|
+
- SCO inclusion/exclusion toggle
|
|
11
|
+
- Sightings as nodes with typed edges
|
|
12
|
+
- Multiple bundle merging
|
|
13
|
+
- MITRE ATT&CK integration test
|