| skipped 3 lines |
4 | 4 | | import { StixInternalExternalReference } from './stix-smo'; |
5 | 5 | | |
6 | 6 | | // Artifact Object Specific Properties |
7 | | - | interface ArtifactExtension extends CyberObjectExtension { |
| 7 | + | export interface ArtifactExtension extends CyberObjectExtension { |
8 | 8 | | additional_names: Array<string>; |
9 | 9 | | } |
10 | 10 | | // mime_type, payload_bin, url, hashes, encryption_algorithm, decryption_key |
11 | | - | interface StixArtifact extends StixCyberObject { |
| 11 | + | export interface StixArtifact extends StixCyberObject { |
12 | 12 | | mime_type: string; // optional |
13 | 13 | | payload_bin: string; // optional |
14 | 14 | | url: string; // optional |
| skipped 8 lines |
23 | 23 | | |
24 | 24 | | // AS Object Specific Properties |
25 | 25 | | // number, name, rir |
26 | | - | interface StixAutonomousSystem extends StixCyberObject { |
| 26 | + | export interface StixAutonomousSystem extends StixCyberObject { |
27 | 27 | | number: number; |
28 | 28 | | name: string; // optional |
29 | 29 | | rir: string; // optional |
| skipped 1 lines |
31 | 31 | | |
32 | 32 | | // Directory Object Specific Properties |
33 | 33 | | // path, path_enc, ctime, mtime, atime, contains_refs |
34 | | - | interface StixDirectory extends StixCyberObject { |
| 34 | + | export interface StixDirectory extends StixCyberObject { |
35 | 35 | | path: string; |
36 | 36 | | path_enc: string; // optional |
37 | 37 | | ctime: Date; // optional |
| skipped 4 lines |
42 | 42 | | |
43 | 43 | | // Domain Name Object Specific Properties |
44 | 44 | | // value, resolves_to_refs |
45 | | - | interface StixDomainName extends StixCyberObject { |
| 45 | + | export interface StixDomainName extends StixCyberObject { |
46 | 46 | | value: string; |
47 | 47 | | resolves_to_refs: Array<StixId>; // optional |
48 | 48 | | } |
49 | 49 | | |
50 | 50 | | // Email Address Object Specific Properties |
51 | 51 | | // value, display_name, belongs_to_ref |
52 | | - | interface StixEmailAddress extends StixCyberObject { |
| 52 | + | export interface StixEmailAddress extends StixCyberObject { |
53 | 53 | | value: string; |
54 | 54 | | display_name: string; // optional |
55 | 55 | | belongs_to_ref: StixId; // optional |
56 | 56 | | } |
57 | 57 | | |
58 | 58 | | // Email Message Object Specific Properties |
59 | | - | interface StixInternalEmailBodyMultipart { |
| 59 | + | export interface StixInternalEmailBodyMultipart { |
60 | 60 | | content_type: string; |
61 | 61 | | content_disposition: string; |
62 | 62 | | body: string; |
63 | 63 | | body_raw_ref: StixId | undefined; |
64 | 64 | | } |
65 | 65 | | |
66 | | - | interface StixEmailBodyMultipart extends StixInternalEmailBodyMultipart, StixCyberObject { |
| 66 | + | export interface StixEmailBodyMultipart extends StixInternalEmailBodyMultipart, StixCyberObject { |
67 | 67 | | labels: Array<string>; |
68 | 68 | | description: string; |
69 | 69 | | score: number; |
| skipped 7 lines |
77 | 77 | | |
78 | 78 | | // is_multipart, date, content_type, from_ref, sender_ref, to_refs, cc_refs, bcc_refs, |
79 | 79 | | // subject, received_lines, additional_header_fields, body, body_multipart, raw_email_ref |
80 | | - | interface StixEmailMessage extends StixCyberObject { |
| 80 | + | export interface StixEmailMessage extends StixCyberObject { |
81 | 81 | | is_multipart: boolean; |
82 | 82 | | date: Date; // optional - attribute_date |
83 | 83 | | content_type: string; // optional |
| skipped 12 lines |
96 | 96 | | } |
97 | 97 | | |
98 | 98 | | // File Object Specific Properties |
99 | | - | interface FileExtension extends CyberObjectExtension { |
| 99 | + | export interface FileExtension extends CyberObjectExtension { |
100 | 100 | | additional_names: Array<string>; |
101 | 101 | | } |
102 | 102 | | // hashes, size, name, name_enc, magic_number_hex, mime_type, ctime, mtime, atime, |
103 | 103 | | // parent_directory_ref, contains_refs, content_ref |
104 | | - | interface StixFile extends StixCyberObject { |
| 104 | + | export interface StixFile extends StixCyberObject { |
105 | 105 | | hashes: object; // optional |
106 | 106 | | size: number; // optional |
107 | 107 | | name: string; // optional |
| skipped 54 lines |
162 | 162 | | |
163 | 163 | | // Custom object extension - Cryptocurrency Wallet |
164 | 164 | | // value |
165 | | - | interface StixCryptocurrencyWallet extends StixCyberObject { |
| 165 | + | export interface StixCryptocurrencyWallet extends StixCyberObject { |
166 | 166 | | value: string; |
167 | 167 | | description: string; |
168 | 168 | | score: number; |
| skipped 10 lines |
179 | 179 | | // Simple custom object extension |
180 | 180 | | // Custom object extension - Cryptographic Key |
181 | 181 | | // value |
182 | | - | interface StixCryptographicKey extends StixCyberObject { |
| 182 | + | export interface StixCryptographicKey extends StixCyberObject { |
183 | 183 | | value: string; |
184 | 184 | | description: string; |
185 | 185 | | score: number; |
| skipped 9 lines |
195 | 195 | | |
196 | 196 | | // Custom object extension - Hostname |
197 | 197 | | // value |
198 | | - | interface StixHostname extends StixCyberObject { |
| 198 | + | export interface StixHostname extends StixCyberObject { |
199 | 199 | | value: string; |
200 | 200 | | description: string; |
201 | 201 | | score: number; |
| skipped 9 lines |
211 | 211 | | |
212 | 212 | | // Custom object extension - Text |
213 | 213 | | // value |
214 | | - | interface StixText extends StixCyberObject { |
| 214 | + | export interface StixText extends StixCyberObject { |
215 | 215 | | value: string; |
216 | 216 | | description: string; |
217 | 217 | | score: number; |
| skipped 9 lines |
227 | 227 | | |
228 | 228 | | // Custom object extension - User Agent |
229 | 229 | | // value |
230 | | - | interface StixUserAgent extends StixCyberObject { |
| 230 | + | export interface StixUserAgent extends StixCyberObject { |
231 | 231 | | value: string; |
232 | 232 | | description: string; |
233 | 233 | | score: number; |
| skipped 9 lines |
243 | 243 | | |
244 | 244 | | // Custom object extension - Bank Account |
245 | 245 | | // iban, bic, number |
246 | | - | interface StixBankAccount extends StixCyberObject { |
| 246 | + | export interface StixBankAccount extends StixCyberObject { |
247 | 247 | | iban: string; |
248 | 248 | | bic: string; |
249 | 249 | | account_number: string; |
| skipped 11 lines |
261 | 261 | | |
262 | 262 | | // Custom object extension - Phone number |
263 | 263 | | // value |
264 | | - | interface StixPhoneNumber extends StixCyberObject { |
| 264 | + | export interface StixPhoneNumber extends StixCyberObject { |
265 | 265 | | value: string; |
266 | 266 | | description: string; |
267 | 267 | | score: number; |
| skipped 9 lines |
277 | 277 | | |
278 | 278 | | // Custom object extension - Credit Card |
279 | 279 | | // number, expiration_date, cvv, holder_name |
280 | | - | interface StixPaymentCard extends StixCyberObject { |
| 280 | + | export interface StixPaymentCard extends StixCyberObject { |
281 | 281 | | card_number: string; |
282 | 282 | | expiration_date: Date; |
283 | 283 | | cvv: number; |
| skipped 14 lines |
298 | 298 | | |
299 | 299 | | // IPv4 Address Object Specific Properties |
300 | 300 | | // value, resolves_to_refs, belongs_to_refs |
301 | | - | interface StixIPv4Address extends StixCyberObject { |
| 301 | + | export interface StixIPv4Address extends StixCyberObject { |
302 | 302 | | value: string; |
303 | 303 | | resolves_to_refs: Array<StixId>; // optional |
304 | 304 | | belongs_to_refs: Array<StixId>; // optional |
| skipped 1 lines |
306 | 306 | | |
307 | 307 | | // IPv6 Address Object Specific Properties |
308 | 308 | | // value, resolves_to_refs, belongs_to_refs |
309 | | - | interface StixIPv6Address extends StixCyberObject { |
| 309 | + | export interface StixIPv6Address extends StixCyberObject { |
310 | 310 | | value: string; |
311 | 311 | | resolves_to_refs: Array<StixId>; // optional |
312 | 312 | | belongs_to_refs: Array<StixId>; // optional |
| skipped 1 lines |
314 | 314 | | |
315 | 315 | | // MAC Address Object Specific Properties |
316 | 316 | | // value |
317 | | - | interface StixMacAddress extends StixCyberObject { |
| 317 | + | export interface StixMacAddress extends StixCyberObject { |
318 | 318 | | value: string; |
319 | 319 | | } |
320 | 320 | | |
321 | 321 | | // Mutex Object Specific Properties |
322 | 322 | | // name |
323 | | - | interface StixMutex extends StixCyberObject { |
| 323 | + | export interface StixMutex extends StixCyberObject { |
324 | 324 | | name: string; |
325 | 325 | | } |
326 | 326 | | |
| skipped 4 lines |
331 | 331 | | // http-request-ext | icmp-ext | socket-ext | tcp-ext |
332 | 332 | | type network_socket_address_family_enum = 'AF_UNSPEC' | 'AF_INET' | 'AF_IPX' | 'AF_APPLETALK' | 'AF_NETBIOS' | 'AF_INET6' | 'AF_IRDA' | 'AF_BTH'; |
333 | 333 | | type network_socket_type_enum = 'SOCK_STREAM' | 'AF_ISOCK_DGRAMNET' | 'SOCK_RAW' | 'SOCK_RDM' | 'SOCK_SEQPACKET'; |
334 | | - | interface StixNetworkTraffic extends StixCyberObject { |
| 334 | + | export interface StixNetworkTraffic extends StixCyberObject { |
335 | 335 | | start: Date; // optional |
336 | 336 | | end: Date; // optional |
337 | 337 | | is_active: boolean; // optional |
| skipped 54 lines |
392 | 392 | | type windows_service_start_type_enum = 'SERVICE_AUTO_START' | 'SERVICE_BOOT_START' | 'SERVICE_DEMAND_START' | 'SERVICE_DISABLED' | 'SERVICE_SYSTEM_ALERT'; |
393 | 393 | | type windows_service_type_enum = 'SERVICE_KERNEL_DRIVER' | 'SERVICE_FILE_SYSTEM_DRIVER' | 'SERVICE_WIN32_OWN_PROCESS' | 'SERVICE_WIN32_SHARE_PROCESS'; |
394 | 394 | | type windows_service_status_enum = 'SERVICE_CONTINUE_PENDING' | 'SERVICE_PAUSE_PENDING' | 'SERVICE_PAUSED' | 'SERVICE_RUNNING' | 'SERVICE_START_PENDING' | 'SERVICE_STOP_PENDING' | 'SERVICE_STOPPED'; |
395 | | - | interface StixProcess extends StixCyberObject { |
| 395 | + | export interface StixProcess extends StixCyberObject { |
396 | 396 | | is_hidden: boolean; // optional |
397 | 397 | | pid: number; // optional |
398 | 398 | | created_time: Date; // optional |
| skipped 34 lines |
433 | 433 | | |
434 | 434 | | // Software Object Specific Properties |
435 | 435 | | // name, cpe, swid, languages, vendor, version |
436 | | - | interface StixSoftware extends StixCyberObject { |
| 436 | + | export interface StixSoftware extends StixCyberObject { |
437 | 437 | | name: string; |
438 | 438 | | cpe: string; // optional |
439 | 439 | | swid: string; // optional |
| skipped 4 lines |
444 | 444 | | |
445 | 445 | | // URL Object Specific Properties |
446 | 446 | | // value |
447 | | - | interface StixURL extends StixCyberObject { |
| 447 | + | export interface StixURL extends StixCyberObject { |
448 | 448 | | score: number; |
449 | 449 | | value: string; // optional |
450 | 450 | | } |
| skipped 3 lines |
454 | 454 | | // can_escalate_privs, is_disabled, account_created, account_expires, credential_last_changed, |
455 | 455 | | // account_first_login, account_last_login |
456 | 456 | | // unix-account-ext |
457 | | - | interface StixUserAccount extends StixCyberObject { |
| 457 | + | export interface StixUserAccount extends StixCyberObject { |
458 | 458 | | user_id: string; // optional |
459 | 459 | | credential: string; // optional |
460 | 460 | | account_login: string; // optional |
| skipped 22 lines |
483 | 483 | | } |
484 | 484 | | |
485 | 485 | | // Windows™ Registry Value Type |
486 | | - | interface StixInternalWindowsRegistryValueType { |
| 486 | + | export interface StixInternalWindowsRegistryValueType { |
487 | 487 | | name: string; |
488 | 488 | | data: string; |
489 | 489 | | data_type: string; |
490 | 490 | | } |
491 | | - | interface StixWindowsRegistryValueType extends StixInternalWindowsRegistryValueType, StixCyberObject { |
| 491 | + | export interface StixWindowsRegistryValueType extends StixInternalWindowsRegistryValueType, StixCyberObject { |
492 | 492 | | labels: Array<string>; |
493 | 493 | | description: string; |
494 | 494 | | score: number; |
| skipped 7 lines |
502 | 502 | | |
503 | 503 | | // WindowsTM Registry Key Object Specific Properties |
504 | 504 | | // key, values, modified_time, creator_user_ref, number_of_subkeys |
505 | | - | interface StixWindowsRegistryKey extends StixCyberObject { |
| 505 | + | export interface StixWindowsRegistryKey extends StixCyberObject { |
506 | 506 | | key: string; // optional |
507 | 507 | | values: Array<StixInternalWindowsRegistryValueType>; // optional |
508 | 508 | | modified_time: Date; // optional |
| skipped 4 lines |
513 | 513 | | // is_self_signed, hashes, version, serial_number, signature_algorithm, issuer, validity_not_before, |
514 | 514 | | // validity_not_after, subject, subject_public_key_algorithm, subject_public_key_modulus, |
515 | 515 | | // subject_public_key_exponent, x509_v3_extensions |
516 | | - | interface StixX509Certificate extends StixCyberObject { |
| 516 | + | export interface StixX509Certificate extends StixCyberObject { |
517 | 517 | | is_self_signed: boolean; // optional |
518 | 518 | | hashes: object; // optional |
519 | 519 | | version: string; // optional |
| skipped 28 lines |
548 | 548 | | |
549 | 549 | | // Custom object extension - Media Content |
550 | 550 | | // value |
551 | | - | interface StixMediaContent extends StixCyberObject { |
| 551 | + | export interface StixMediaContent extends StixCyberObject { |
552 | 552 | | title: string; |
553 | 553 | | description: string; |
554 | 554 | | content: string; |
| skipped 14 lines |