threatzone 1.0.0__py3-none-any.whl

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.
threatzone/__init__.py ADDED
@@ -0,0 +1,177 @@
1
+ """Threat.Zone Python SDK.
2
+
3
+ A Python SDK for the Threat.Zone malware analysis platform API.
4
+
5
+ Example:
6
+ >>> from threatzone import ThreatZone
7
+ >>> client = ThreatZone(api_key="your-api-key")
8
+ >>> submission = client.create_sandbox_submission("malware.exe")
9
+ >>> result = client.wait_for_completion(submission.uuid)
10
+ >>> print(result.level)
11
+ """
12
+
13
+ from ._async_client import AsyncThreatZone
14
+ from ._exceptions import (
15
+ AnalysisTimeoutError,
16
+ APIError,
17
+ AuthenticationError,
18
+ BadRequestError,
19
+ ConnectionError,
20
+ InternalServerError,
21
+ NotFoundError,
22
+ PaymentRequiredError,
23
+ PermissionDeniedError,
24
+ RateLimitError,
25
+ ReportUnavailableError,
26
+ ThreatZoneError,
27
+ TimeoutError,
28
+ YaraRulePendingError,
29
+ )
30
+ from ._streaming import AsyncDownloadResponse, DownloadResponse
31
+ from ._sync_client import ThreatZone
32
+ from .types import (
33
+ Artifact,
34
+ ArtifactsResponse,
35
+ BehaviourEvent,
36
+ BehaviourOs,
37
+ BehavioursResponse,
38
+ CdrResponse,
39
+ CdrResult,
40
+ Connection,
41
+ DnsQuery,
42
+ EmlAnalysis,
43
+ EnvironmentOption,
44
+ ExtractedConfig,
45
+ ExtractedConfigsResponse,
46
+ FileInfo,
47
+ FileLimits,
48
+ Hashes,
49
+ HttpRequest,
50
+ Indicator,
51
+ IndicatorsResponse,
52
+ IoC,
53
+ IoCsResponse,
54
+ LimitsCount,
55
+ MediaFile,
56
+ MetafieldOption,
57
+ Metafields,
58
+ MitreResponse,
59
+ ModuleInfo,
60
+ NetworkSummary,
61
+ NetworkThreat,
62
+ OverviewSummary,
63
+ PaginatedSubmissions,
64
+ PlanInfo,
65
+ Process,
66
+ ProcessesResponse,
67
+ ProcessTreeResponse,
68
+ ReportStatus,
69
+ SignatureCheckResponse,
70
+ SignatureCheckResult,
71
+ StaticScanResponse,
72
+ StaticScanResult,
73
+ Submission,
74
+ SubmissionCreated,
75
+ SubmissionLimits,
76
+ SubmissionListItem,
77
+ SyscallsResponse,
78
+ Tag,
79
+ UrlAnalysisResponse,
80
+ UserInfo,
81
+ UserInfoDetails,
82
+ WorkspaceBasicInfo,
83
+ YaraRule,
84
+ YaraRulesResponse,
85
+ )
86
+
87
+ __version__ = "1.0.0"
88
+
89
+ __all__ = [
90
+ # Clients
91
+ "ThreatZone",
92
+ "AsyncThreatZone",
93
+ # Download responses
94
+ "DownloadResponse",
95
+ "AsyncDownloadResponse",
96
+ # Exceptions
97
+ "ThreatZoneError",
98
+ "APIError",
99
+ "AuthenticationError",
100
+ "PaymentRequiredError",
101
+ "PermissionDeniedError",
102
+ "NotFoundError",
103
+ "BadRequestError",
104
+ "RateLimitError",
105
+ "InternalServerError",
106
+ "TimeoutError",
107
+ "ConnectionError",
108
+ "AnalysisTimeoutError",
109
+ "YaraRulePendingError",
110
+ "ReportUnavailableError",
111
+ # Types - Common
112
+ "Hashes",
113
+ "FileInfo",
114
+ "Tag",
115
+ "ReportStatus",
116
+ # Types - Config
117
+ "MetafieldOption",
118
+ "Metafields",
119
+ "EnvironmentOption",
120
+ # Types - Downloads
121
+ "MediaFile",
122
+ # Types - Indicators
123
+ "Indicator",
124
+ "IndicatorsResponse",
125
+ "IoC",
126
+ "IoCsResponse",
127
+ "YaraRule",
128
+ "YaraRulesResponse",
129
+ "ExtractedConfig",
130
+ "ExtractedConfigsResponse",
131
+ "Artifact",
132
+ "ArtifactsResponse",
133
+ "OverviewSummary",
134
+ # Types - EML
135
+ "EmlAnalysis",
136
+ # Types - Mitre
137
+ "MitreResponse",
138
+ # Types - Me
139
+ "UserInfo",
140
+ "UserInfoDetails",
141
+ "WorkspaceBasicInfo",
142
+ "LimitsCount",
143
+ "PlanInfo",
144
+ "FileLimits",
145
+ "SubmissionLimits",
146
+ "ModuleInfo",
147
+ # Types - Network
148
+ "NetworkSummary",
149
+ "DnsQuery",
150
+ "HttpRequest",
151
+ "Connection",
152
+ "NetworkThreat",
153
+ # Types - Processes
154
+ "Process",
155
+ "ProcessesResponse",
156
+ "ProcessTreeResponse",
157
+ # Types - Behaviours
158
+ "BehaviourEvent",
159
+ "BehaviourOs",
160
+ "BehavioursResponse",
161
+ # Types - Syscalls
162
+ "SyscallsResponse",
163
+ # Types - Static scan / CDR / Signature check
164
+ "StaticScanResponse",
165
+ "StaticScanResult",
166
+ "CdrResponse",
167
+ "CdrResult",
168
+ "SignatureCheckResponse",
169
+ "SignatureCheckResult",
170
+ # Types - URL analysis
171
+ "UrlAnalysisResponse",
172
+ # Types - Submissions
173
+ "SubmissionCreated",
174
+ "SubmissionListItem",
175
+ "PaginatedSubmissions",
176
+ "Submission",
177
+ ]