nullcone 0.1.0__tar.gz → 0.1.2__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.
Files changed (43) hide show
  1. nullcone-0.1.2/LICENSE +76 -0
  2. {nullcone-0.1.0 → nullcone-0.1.2}/PKG-INFO +38 -9
  3. {nullcone-0.1.0 → nullcone-0.1.2}/README.md +23 -4
  4. nullcone-0.1.2/nullcone/__init__.py +169 -0
  5. nullcone-0.1.2/nullcone/adaptive_codebook.py +307 -0
  6. {nullcone-0.1.0 → nullcone-0.1.2}/nullcone/agent.py +109 -17
  7. nullcone-0.1.2/nullcone/attack_detector.py +359 -0
  8. {nullcone-0.1.0 → nullcone-0.1.2}/nullcone/classifier.py +11 -1
  9. {nullcone-0.1.0 → nullcone-0.1.2}/nullcone/cli.py +342 -2
  10. nullcone-0.1.2/nullcone/compressor.py +656 -0
  11. nullcone-0.1.2/nullcone/confidence.py +177 -0
  12. nullcone-0.1.2/nullcone/curation.py +91 -0
  13. nullcone-0.1.2/nullcone/delta_sync.py +289 -0
  14. {nullcone-0.1.0 → nullcone-0.1.2}/nullcone/ei_client.py +2 -2
  15. nullcone-0.1.2/nullcone/fingerprinting.py +393 -0
  16. nullcone-0.1.2/nullcone/freshness.py +241 -0
  17. nullcone-0.1.2/nullcone/integrations/__init__.py +20 -0
  18. nullcone-0.1.2/nullcone/integrations/langchain.py +304 -0
  19. nullcone-0.1.2/nullcone/integrations/smolagents.py +309 -0
  20. nullcone-0.1.2/nullcone/mcp_fingerprinter.py +421 -0
  21. nullcone-0.1.2/nullcone/mcp_registry_monitor.py +394 -0
  22. nullcone-0.1.2/nullcone/models.py +502 -0
  23. nullcone-0.1.2/nullcone/observability.py +296 -0
  24. nullcone-0.1.2/nullcone/prompt_cache.py +309 -0
  25. nullcone-0.1.2/nullcone/revocation.py +331 -0
  26. nullcone-0.1.2/nullcone/skill_scanner.py +573 -0
  27. nullcone-0.1.2/nullcone/stego_detector.py +640 -0
  28. nullcone-0.1.2/nullcone/threat_bounds.py +309 -0
  29. nullcone-0.1.2/nullcone/threat_graph.py +305 -0
  30. nullcone-0.1.2/nullcone/token_stream_validator.py +280 -0
  31. nullcone-0.1.2/nullcone/tool_attestation.py +842 -0
  32. nullcone-0.1.2/nullcone/unicode_scanner.py +394 -0
  33. nullcone-0.1.2/nullcone/validation_observer.py +278 -0
  34. nullcone-0.1.2/nullcone/validators.py +517 -0
  35. {nullcone-0.1.0 → nullcone-0.1.2}/pyproject.toml +9 -6
  36. nullcone-0.1.0/.gitignore +0 -24
  37. nullcone-0.1.0/LICENSE +0 -21
  38. nullcone-0.1.0/nullcone/__init__.py +0 -43
  39. nullcone-0.1.0/nullcone/compressor.py +0 -421
  40. nullcone-0.1.0/nullcone/models.py +0 -206
  41. {nullcone-0.1.0 → nullcone-0.1.2}/nullcone/client.py +0 -0
  42. {nullcone-0.1.0 → nullcone-0.1.2}/nullcone/py.typed +0 -0
  43. {nullcone-0.1.0 → nullcone-0.1.2}/nullcone/sensor.py +0 -0
nullcone-0.1.2/LICENSE ADDED
@@ -0,0 +1,76 @@
1
+ # Rising Sun License v1.0
2
+
3
+ This license governs all software released under the Rising Sun project.
4
+
5
+ ## For People
6
+
7
+ Use this software however you want. Run it, study it, modify it, share it.
8
+ Personal use, education, research, tinkering — all free, no strings attached.
9
+
10
+ You don't need permission. You don't need to register. Just use it.
11
+
12
+ ## For Builders
13
+
14
+ If you build something that generates revenue using this software, connect it
15
+ to the Nous network. Nous handles verification, attestation, and accounting
16
+ automatically — you integrate once and it works.
17
+
18
+ The economics are simple: Nous takes a small percentage of the value flowing
19
+ through your deployment. The rate is published and predictable. You always
20
+ keep the majority. The exact terms are governed by the Nous protocol and
21
+ published at the canonical terms endpoint.
22
+
23
+ You may not remove, bypass, or substitute the Nous integration in a
24
+ commercial deployment. Everything else is yours to build.
25
+
26
+ ## For Enterprise
27
+
28
+ Custom integration, dedicated support, and private deployment are available
29
+ directly from Rising Sun. Enterprise terms are negotiated individually and
30
+ may include modified Nous configurations, SLAs, and priority access to new
31
+ capabilities.
32
+
33
+ Contact: alex@risingsun.name
34
+
35
+ ## How Nous Works
36
+
37
+ Nous is a verification and attestation service. When your deployment does
38
+ work — processes data, serves users, executes transactions — Nous verifies
39
+ the work, attests to its completion, and routes value through the Ergon
40
+ ledger. Trust scores build over time: consistent, honest operation earns
41
+ better terms automatically.
42
+
43
+ This is not a phone-home or surveillance mechanism. Nous verifies value
44
+ created, not behavior observed. The attestation record is transparent
45
+ and auditable.
46
+
47
+ ## What You Can Do
48
+
49
+ - Use, copy, modify, and distribute this software
50
+ - Build commercial products and services on it
51
+ - Fork it, extend it, combine it with other software
52
+ - Run it on any infrastructure you control
53
+ - Contribute improvements back (appreciated, not required)
54
+
55
+ ## What You Cannot Do
56
+
57
+ - Remove or bypass Nous integration in commercial deployments
58
+ - Represent modified versions as official Rising Sun releases
59
+ - Use Rising Sun trademarks without permission
60
+
61
+ ## Contributions
62
+
63
+ Contributions via pull request grant the project a perpetual, irrevocable,
64
+ royalty-free license to use the contribution. Contributors retain copyright
65
+ on their work.
66
+
67
+ ## No Warranty
68
+
69
+ This software is provided as-is, without warranty of any kind. The licensor
70
+ is not liable for any damages arising from its use.
71
+
72
+ ---
73
+
74
+ Rising Sun License v1.0
75
+ Copyright (c) 2026 Alex Macaluso
76
+ https://risingsun.name
@@ -1,20 +1,20 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: nullcone
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: Distributed threat intelligence for AI agents — real-time IOC sharing via SpacetimeDB
5
5
  Project-URL: Homepage, https://nullcone.ai
6
6
  Project-URL: Repository, https://github.com/maco144/nullcone
7
7
  Project-URL: Issues, https://github.com/maco144/nullcone/issues
8
8
  Project-URL: Documentation, https://nullcone.ai/docs
9
- Author-email: Nullcone <hello@nullcone.ai>
10
- License: MIT
9
+ Author-email: Nullcone <hi@nullcone.ai>
10
+ License: Rising Sun License v1.0
11
11
  License-File: LICENSE
12
12
  Keywords: ai-agents,ioc,malware,security,spacetimedb,threat-intelligence
13
13
  Classifier: Development Status :: 4 - Beta
14
14
  Classifier: Environment :: Console
15
15
  Classifier: Intended Audience :: Developers
16
16
  Classifier: Intended Audience :: Information Technology
17
- Classifier: License :: OSI Approved :: MIT License
17
+ Classifier: License :: Other/Proprietary License
18
18
  Classifier: Programming Language :: Python :: 3
19
19
  Classifier: Programming Language :: Python :: 3.11
20
20
  Classifier: Programming Language :: Python :: 3.12
@@ -28,8 +28,18 @@ Provides-Extra: dev
28
28
  Requires-Dist: httpx; extra == 'dev'
29
29
  Requires-Dist: pytest-asyncio; extra == 'dev'
30
30
  Requires-Dist: pytest>=7; extra == 'dev'
31
+ Requires-Dist: respx; extra == 'dev'
31
32
  Provides-Extra: embeddings
32
33
  Requires-Dist: sentence-transformers>=2.0; extra == 'embeddings'
34
+ Provides-Extra: integrations
35
+ Requires-Dist: langchain-core>=0.2; extra == 'integrations'
36
+ Requires-Dist: langchain>=0.2; extra == 'integrations'
37
+ Requires-Dist: smolagents>=1.0; extra == 'integrations'
38
+ Provides-Extra: langchain
39
+ Requires-Dist: langchain-core>=0.2; extra == 'langchain'
40
+ Requires-Dist: langchain>=0.2; extra == 'langchain'
41
+ Provides-Extra: smolagents
42
+ Requires-Dist: smolagents>=1.0; extra == 'smolagents'
33
43
  Description-Content-Type: text/markdown
34
44
 
35
45
  # nullcone
@@ -38,7 +48,7 @@ Description-Content-Type: text/markdown
38
48
 
39
49
  Real-time IOC sharing powered by [SpacetimeDB](https://spacetimedb.com). Your agent detects a threat — report it in one call — every other agent on the network is protected within milliseconds.
40
50
 
41
- 592,000+ IOCs indexed · 549 malware families · 12+ live feeds · <1ms query latency
51
+ 1,295,000+ IOCs indexed · 549 malware families · 20+ live feeds · <1ms query latency
42
52
 
43
53
  ---
44
54
 
@@ -104,6 +114,10 @@ agent.subscribe_new_threats(callback=on_new_threats, min_severity=7)
104
114
  agent.start_subscriptions()
105
115
  ```
106
116
 
117
+ > **Self-hosted only.** Real-time subscriptions are not open on the hosted `nullcone.ai`
118
+ > service right now (the subscribe endpoint returns 403). Against the hosted service, use
119
+ > `sync_loop()` / `poll_since()` above — or the MCP server at `https://nullcone.ai/mcp`.
120
+
107
121
  ---
108
122
 
109
123
  ## Quick start — CLI
@@ -159,6 +173,7 @@ nullcone threats --json | jq '.[].value'
159
173
  | Key | Description |
160
174
  |---|---|
161
175
  | `ip` | IPv4 / IPv6 address |
176
+ | `ip_port` | IP address with port (`1.2.3.4:443`) |
162
177
  | `domain` | Malicious domain |
163
178
  | `url` | Malicious URL |
164
179
  | `md5` / `sha1` / `sha256` | File hashes |
@@ -167,6 +182,7 @@ nullcone threats --json | jq '.[].value'
167
182
  | `prompt` | Malicious LLM instruction / prompt injection pattern |
168
183
  | `skill` | Malicious AI agent skill / plugin identifier |
169
184
  | `yara` | YARA rule pattern |
185
+ | `stego` | Steganographic technique / covert-channel signature |
170
186
  | `email`, `mutex`, `registry`, `filepath`, `asn`, `imphash` | Standard IOC types |
171
187
 
172
188
  ---
@@ -199,15 +215,28 @@ nullcone submit-batch threats.json
199
215
 
200
216
  ---
201
217
 
218
+ ## Other ways to connect
219
+
220
+ The SDK is one of four surfaces onto the same corpus:
221
+
222
+ | Surface | How |
223
+ |---|---|
224
+ | **MCP (remote)** | point any MCP client at `https://nullcone.ai/mcp` — streamable-http, no auth, 30 tools |
225
+ | **Claude Code plugin** | `/plugin install nullcone@nullcone` |
226
+ | **REST** | `curl "https://nullcone.ai/v1/ioc?value=185.220.101.47"` |
227
+ | **Anonymous SQL** | `POST https://nullcone.ai/v1/database/nullcone/sql` (reads only) |
228
+
229
+ ---
230
+
202
231
  ## Links
203
232
 
204
233
  - **Website**: [nullcone.ai](https://nullcone.ai)
205
- - **Documentation**: [nullcone.ai/docs](https://nullcone.ai/docs)
234
+ - **API reference**: [nullcone.ai/api/docs](https://nullcone.ai/api/docs) (OpenAPI / Swagger)
206
235
  - **Issues**: [github.com/maco144/nullcone](https://github.com/maco144/nullcone/issues)
207
- - **Contact**: [hello@nullcone.ai](mailto:hello@nullcone.ai)
236
+ - **Contact**: [hi@nullcone.ai](mailto:hi@nullcone.ai)
208
237
 
209
238
  ---
210
239
 
211
240
  ## License
212
241
 
213
- MIT — see [LICENSE](https://github.com/maco144/nullcone/blob/main/LICENSE).
242
+ Rising Sun License v1.0 — see [LICENSE](https://github.com/maco144/nullcone/blob/main/client/LICENSE).
@@ -4,7 +4,7 @@
4
4
 
5
5
  Real-time IOC sharing powered by [SpacetimeDB](https://spacetimedb.com). Your agent detects a threat — report it in one call — every other agent on the network is protected within milliseconds.
6
6
 
7
- 592,000+ IOCs indexed · 549 malware families · 12+ live feeds · <1ms query latency
7
+ 1,295,000+ IOCs indexed · 549 malware families · 20+ live feeds · <1ms query latency
8
8
 
9
9
  ---
10
10
 
@@ -70,6 +70,10 @@ agent.subscribe_new_threats(callback=on_new_threats, min_severity=7)
70
70
  agent.start_subscriptions()
71
71
  ```
72
72
 
73
+ > **Self-hosted only.** Real-time subscriptions are not open on the hosted `nullcone.ai`
74
+ > service right now (the subscribe endpoint returns 403). Against the hosted service, use
75
+ > `sync_loop()` / `poll_since()` above — or the MCP server at `https://nullcone.ai/mcp`.
76
+
73
77
  ---
74
78
 
75
79
  ## Quick start — CLI
@@ -125,6 +129,7 @@ nullcone threats --json | jq '.[].value'
125
129
  | Key | Description |
126
130
  |---|---|
127
131
  | `ip` | IPv4 / IPv6 address |
132
+ | `ip_port` | IP address with port (`1.2.3.4:443`) |
128
133
  | `domain` | Malicious domain |
129
134
  | `url` | Malicious URL |
130
135
  | `md5` / `sha1` / `sha256` | File hashes |
@@ -133,6 +138,7 @@ nullcone threats --json | jq '.[].value'
133
138
  | `prompt` | Malicious LLM instruction / prompt injection pattern |
134
139
  | `skill` | Malicious AI agent skill / plugin identifier |
135
140
  | `yara` | YARA rule pattern |
141
+ | `stego` | Steganographic technique / covert-channel signature |
136
142
  | `email`, `mutex`, `registry`, `filepath`, `asn`, `imphash` | Standard IOC types |
137
143
 
138
144
  ---
@@ -165,15 +171,28 @@ nullcone submit-batch threats.json
165
171
 
166
172
  ---
167
173
 
174
+ ## Other ways to connect
175
+
176
+ The SDK is one of four surfaces onto the same corpus:
177
+
178
+ | Surface | How |
179
+ |---|---|
180
+ | **MCP (remote)** | point any MCP client at `https://nullcone.ai/mcp` — streamable-http, no auth, 30 tools |
181
+ | **Claude Code plugin** | `/plugin install nullcone@nullcone` |
182
+ | **REST** | `curl "https://nullcone.ai/v1/ioc?value=185.220.101.47"` |
183
+ | **Anonymous SQL** | `POST https://nullcone.ai/v1/database/nullcone/sql` (reads only) |
184
+
185
+ ---
186
+
168
187
  ## Links
169
188
 
170
189
  - **Website**: [nullcone.ai](https://nullcone.ai)
171
- - **Documentation**: [nullcone.ai/docs](https://nullcone.ai/docs)
190
+ - **API reference**: [nullcone.ai/api/docs](https://nullcone.ai/api/docs) (OpenAPI / Swagger)
172
191
  - **Issues**: [github.com/maco144/nullcone](https://github.com/maco144/nullcone/issues)
173
- - **Contact**: [hello@nullcone.ai](mailto:hello@nullcone.ai)
192
+ - **Contact**: [hi@nullcone.ai](mailto:hi@nullcone.ai)
174
193
 
175
194
  ---
176
195
 
177
196
  ## License
178
197
 
179
- MIT — see [LICENSE](https://github.com/maco144/nullcone/blob/main/LICENSE).
198
+ Rising Sun License v1.0 — see [LICENSE](https://github.com/maco144/nullcone/blob/main/client/LICENSE).
@@ -0,0 +1,169 @@
1
+ """
2
+ Nullcone — distributed threat intelligence client SDK.
3
+
4
+ Quick start:
5
+ from nullcone import NullconeAgent, IOC, IOCType
6
+
7
+ with NullconeAgent() as agent:
8
+ result = agent.submit_ioc(IOC(ioc_type=IOCType.DOMAIN, value="evil.example.com"))
9
+ """
10
+ from .agent import NullconeAgent
11
+ from .models import (
12
+ IOC,
13
+ IOCType,
14
+ Severity,
15
+ ActionTaken,
16
+ ThreatSignature,
17
+ MalwareFamily,
18
+ AgentInfo,
19
+ SubmitResult,
20
+ DetectionEvent,
21
+ SkillMetadata,
22
+ SkillValidationResult,
23
+ SkillRisk,
24
+ EnforcementAction,
25
+ EdgeType,
26
+ SkillChainNode,
27
+ SkillChainEdge,
28
+ SkillChain,
29
+ PolymorphicVariant,
30
+ build_skill_ioc,
31
+ )
32
+ from .client import SpacetimeDBClient, SpacetimeDBSubscriber, SpacetimeDBError
33
+ from .ei_client import EIClient, EIVerification, EIError, ALLOWED_ENTITY_TYPES
34
+ from .validators import validate_and_normalize
35
+ from .observability import PushObserver
36
+ from .prompt_cache import PromptCache, PromptCheckResult
37
+ from .fingerprinting import SessionFingerprint, FingerprintRegistry, extract_features
38
+ from .mcp_fingerprinter import MCPToolFingerprinter, FingerprintResult, FingerprintSignal, RiskLevel
39
+ from .mcp_registry_monitor import MCPRegistryMonitor, ToolBaseline, DriftResult
40
+ from .delta_sync import DeltaSyncManager, SyncResult, SyncStats
41
+ from .freshness import FreshnessValidator, FreshnessResult, ActionTier
42
+ from .adaptive_codebook import AdaptiveCodebook, SessionCodebook
43
+ from .token_stream_validator import (
44
+ TokenStreamValidator,
45
+ StreamValidationResult,
46
+ ValidationAction,
47
+ )
48
+ from .revocation import RevocationRegistry, RevocationEvent, RevocationWatcher
49
+ from .tool_attestation import (
50
+ ToolAttestation,
51
+ ToolAttestor,
52
+ AttestationStore,
53
+ InvalidationPublisher,
54
+ AbuseCHSignalSource,
55
+ GitHubAdvisorySignalSource,
56
+ IncidentReportRegistry,
57
+ attest_tool_batch,
58
+ )
59
+ from .confidence import compute_confidence_score, confidence_tier, SOURCE_CREDIBILITY
60
+ from .threat_graph import ThreatGraph, ThreatAssessment, normalize_for_clustering, cluster_hash
61
+ from .threat_bounds import ThreatBoundPolicy, ThreatBound, BoundContext, BoundDecision, DEFAULT_POLICY
62
+ from .validation_observer import ValidationObserver, ValidationMetrics
63
+ from .attack_detector import AttackDetector, AttackVector, DetectionResult, MultiDetectionResult
64
+ from .skill_scanner import SkillScanner, SkillScanResult, ScanSignal, SkillRiskLevel
65
+ from .unicode_scanner import (
66
+ UnicodeScanner,
67
+ UnicodeScanResult,
68
+ UnicodeRisk,
69
+ InvisibleCharInfo,
70
+ decode_glassworm_payload,
71
+ )
72
+ from .stego_detector import StegoDetector, StegoScanResult, StegoFinding, StegoRisk
73
+
74
+ __all__ = [
75
+ "NullconeAgent",
76
+ "IOC",
77
+ "IOCType",
78
+ "Severity",
79
+ "ActionTaken",
80
+ "ThreatSignature",
81
+ "MalwareFamily",
82
+ "AgentInfo",
83
+ "SubmitResult",
84
+ "DetectionEvent",
85
+ "SkillMetadata",
86
+ "SkillValidationResult",
87
+ "SkillRisk",
88
+ "EnforcementAction",
89
+ "build_skill_ioc",
90
+ "SpacetimeDBClient",
91
+ "SpacetimeDBSubscriber",
92
+ "SpacetimeDBError",
93
+ "EIClient",
94
+ "EIVerification",
95
+ "EIError",
96
+ "ALLOWED_ENTITY_TYPES",
97
+ "validate_and_normalize",
98
+ "PushObserver",
99
+ "PromptCache",
100
+ "PromptCheckResult",
101
+ "SessionFingerprint",
102
+ "FingerprintRegistry",
103
+ "extract_features",
104
+ "MCPToolFingerprinter",
105
+ "FingerprintResult",
106
+ "FingerprintSignal",
107
+ "RiskLevel",
108
+ "MCPRegistryMonitor",
109
+ "ToolBaseline",
110
+ "DriftResult",
111
+ "DeltaSyncManager",
112
+ "SyncResult",
113
+ "SyncStats",
114
+ "FreshnessValidator",
115
+ "FreshnessResult",
116
+ "ActionTier",
117
+ "AdaptiveCodebook",
118
+ "SessionCodebook",
119
+ "TokenStreamValidator",
120
+ "StreamValidationResult",
121
+ "ValidationAction",
122
+ "RevocationRegistry",
123
+ "RevocationEvent",
124
+ "RevocationWatcher",
125
+ "ToolAttestation",
126
+ "ToolAttestor",
127
+ "AttestationStore",
128
+ "InvalidationPublisher",
129
+ "AbuseCHSignalSource",
130
+ "GitHubAdvisorySignalSource",
131
+ "IncidentReportRegistry",
132
+ "attest_tool_batch",
133
+ "compute_confidence_score",
134
+ "confidence_tier",
135
+ "SOURCE_CREDIBILITY",
136
+ "SkillScanner",
137
+ "SkillScanResult",
138
+ "ScanSignal",
139
+ "SkillRiskLevel",
140
+ "UnicodeScanner",
141
+ "UnicodeScanResult",
142
+ "UnicodeRisk",
143
+ "InvisibleCharInfo",
144
+ "decode_glassworm_payload",
145
+ "EdgeType",
146
+ "SkillChainNode",
147
+ "SkillChainEdge",
148
+ "SkillChain",
149
+ "PolymorphicVariant",
150
+ "ThreatGraph",
151
+ "ThreatAssessment",
152
+ "normalize_for_clustering",
153
+ "cluster_hash",
154
+ "ThreatBoundPolicy",
155
+ "ThreatBound",
156
+ "BoundContext",
157
+ "BoundDecision",
158
+ "DEFAULT_POLICY",
159
+ "ValidationObserver",
160
+ "ValidationMetrics",
161
+ "AttackDetector",
162
+ "AttackVector",
163
+ "DetectionResult",
164
+ "MultiDetectionResult",
165
+ "StegoDetector",
166
+ "StegoScanResult",
167
+ "StegoFinding",
168
+ "StegoRisk",
169
+ ]