Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 104 additions & 0 deletions packages/ti_abusech/_dev/deploy/docker/files/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,108 @@
rules:
- path: /v1/login
methods: ["POST"]
request_headers:
Content-Type: "application/json"
responses:
- status_code: 200
body: |-
{
"code": 200,
"token": "test-commercial-token",
"expires": 4102444800

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

January 1, 2100 for never expires? Has this been tested against a real endpoint so that we know the token requests work?

Alternatively, add a script test for this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this data stream was tested on the live instance.

}
- path: /malwarebazaar/v1/samples
methods: ["GET"]
query_params:
since: ["{since:.*}"]
page_size: ["{page_size:.*}"]
request_headers:
Authorization:
- "Bearer test-commercial-token"
responses:
- status_code: 200
body: |-
{
"items": [
{
"anonymous": false,
"comment": "Commercial API test sample",
"delivery_method": "email_attachment",
"file_name": "7a6c03013a2f2ab8b9e8e7e5d226ea89e75da72c1519e78fd28b2253ea755c28.exe",
"file_size": 432640,
"file_type": "exe",
"file_type_mime": "application/x-dosexec",
"first_seen": "2021-10-05T14:02:45Z",
"imphash": "f34d5f2d4577ed6d9ceec516c1f5a744",
"intelligence": {
"clamav": ["Win.Trojan.RedLineStealer.UNOFFICIAL"],
"downloads": 11,
"uploads": 1
},
"magika": "pebin",
"md5_hash": "1fc1c2997c8f55ac10496b88e23f5320",
"origin_country": "FR",
"reporter": "abuse_ch",
"sha1_hash": "42c7153680d7402e56fe022d1024aab49a9901a0",
"sha256_hash": "7a6c03013a2f2ab8b9e8e7e5d226ea89e75da72c1519e78fd28b2253ea755c28",
"sha3_384_hash": "d63e73b68973bc73ab559549aeee2141a48b8a3724aabc0d81fb14603c163a098a5a10be9f6d33b888602906c0d89955",
"signature": "RedLineStealer",
"ssdeep": "12288:jhhl1Eo+iEXvpb1C7drqAd1uUaJvzXGyO2F5V3bS1jsTacr:7lL",
"tags": ["exe", "RedLineStealer"],
"tlsh": "T13794242864BFC05994E3EEA12DDCA8FBD99A55E3640C743301B4633B8B52B84DE4F479"
},
{
"anonymous": true,
"file_name": "657edf01cd9100a52abd7a9d8e585a28",
"file_size": 414720,
"file_type": "exe",
"file_type_mime": "application/x-dosexec",
"first_seen": "2021-10-05T14:00:50Z",
"imphash": "f34d5f2d4577ed6d9ceec516c1f5a744",
"intelligence": {
"downloads": 11,
"uploads": 1
},
"md5_hash": "657edf01cd9100a52abd7a9d8e585a28",
"origin_country": "FR",
"reporter": "test_reporter_2",
"sha1_hash": "47da737c89777cd1d08c5427d08ec3e77ef0da2c",
"sha256_hash": "670e59f677706e51b84984f42f8f89229e294e4c482dfa4fc72964def42a3626",
"sha3_384_hash": "60b388f9e2d0e24328af41421cc71f6cf097a432b7393e122c1f2103a4be0c1f1ab8b3e0a61a4393ac4eb27716e4bab2",
"signature": "Loki",
"ssdeep": "6144:FQq8qc0WpMge4UPvaMmdtq1a/tZFJYhVFyWpEGDNi0x7ynZPppgjQ+3HwO/A:FQq8qc0WfqaFq8tfJWVFL1Ri0x453o4",
"tags": ["32", "exe", "Loki", "trojan"],
"tlsh": "T1C7949D69322F5917CE288EF5185EA1C183F90C3B155AE7E85DCAF1FA65C3FB01A81493"
},
{
"anonymous": false,
"file_name": "dummy_malware.exe",
"file_size": 512345,
"file_type": "exe",
"file_type_mime": "application/x-dosexec",
"first_seen": "2023-06-15T10:30:45Z",
"imphash": "e1f2a3b4567890abcdef1234567890ab",
"intelligence": {
"downloads": 25,
"uploads": 3
},
"md5_hash": "d1e2f3a4567890123456789abcdef01",
"origin_country": "US",
"reporter": "dummy_researcher",
"sha1_hash": "c1d2e3f4a567890123456789abcdef012345678",
"sha256_hash": "a1b2c3d4e5f67890123456789abcdef0123456789abcdef0123456789abcdef",
"sha3_384_hash": "b1c2d3e4f5a67890123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"signature": "FakeSignature",
"ssdeep": "6144:ABCDEF0123456789abcdefABCDEF0123456789abcdefABCDEF0123456789abcdef:A1B2C3D4E5F6G7H8",
"tags": ["64", "exe", "FakeSignature", "ransomware"],
"tlsh": "F1E2D3C4B5A67890ABCDEF1234567890ABCDEF1234567890ABCDEF1234567890ABCDEF12"
}
],
"meta": {
"page_size": 100,
"total_items": 3
}
}
- path: /api/v1/
methods: ["POST"]
request_headers:
Expand Down
5 changes: 5 additions & 0 deletions packages/ti_abusech/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "4.2.0"
changes:
- description: Add Commercial API support for the MalwareBazaar data stream.
type: enhancement
link: https://github.com/elastic/integrations/pull/20199
- version: "4.1.2"
changes:
- description: Fix transform destination to use keyword for data_stream.namespace, allowing multi-namespace deployments.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{"anonymous":false,"delivery_method":"email_attachment","dhash_icon":"f0f0c4ccccd4f0f0","file_information":[{"context":"Triage","value":"https://example.com/reports/sample-report/"},{"context":"CAPE","value":"https://www.capesandbox.com/analysis/74730/"},{"context":"CERT-PL_MWDB","value":"https://mwdb.cert.pl/sample/c2665146924371e34157e249c8e05b276c52de7280f4b895923dc21b636dfe0f/"},{"context":"cape","value":"https://www.capesandbox.com/analysis/74730/"}],"file_name":"c2665146924371e3.bin","file_size":156160,"file_type":"exe","file_type_mime":"application/x-dosexec","first_seen":"2026-07-15T07:18:20Z","humanhash":"virginia-utah-snake-michigan","imphash":"88967e8dc94c2149dd89b55f39e46fa6","intelligence":{"clamav":["Win.Packed.Mikey-10032681-0","YARA.SEKOIA_Infostealer_Win_Vidar_Strings_Nov23.UNOFFICIAL"],"downloads":0,"uploads":1},"magika":"pebin","md5_hash":"baf9cea14437b586c05d0aea2082fc43","reporter":"abuse_ch","sha1_hash":"433599cf52b16e3c0ebc675ad69abba671af421d","sha256_hash":"c2665146924371e34157e249c8e05b276c52de7280f4b895923dc21b636dfe0f","sha3_384_hash":"e8ec184ab4b6b18c960f127afce6aee03dd9aeaefd4968e3ee3d936b5f712abce8dd538430cf6e22cb6d3e2865e830d6","signature":"Vidar","ssdeep":"3072:vEFRh0auCcJVwDjwzTC2SCn/FtVQenIuxIGWsnRR9pLTfavXUowv+F9OerHJvX:c3h0aMJ+Hw3Pgen79/Svk9yb1","tags":["exe","vidar"],"tlsh":"T138E38D193B93D472E5492B78227F37BCDEB08D362C50CAEBDF80290E4E671905796267","trid":["38.2% (.EXE) Win64 Executable (generic) (6522/11/2)","26.4% (.EXE) Win32 Executable (generic) (4504/4/1)","11.8% (.EXE) OS/2 Executable (generic) (2029/13)","11.7% (.EXE) Generic Win/DOS Executable (2002/3)","11.7% (.EXE) DOS Executable (generic) (2000/1)"],"vendor_intel":{"cape":{"link":"https://www.capesandbox.com/analysis/74730/"}}}
{"anonymous":false,"comment":"Distributed via malicious download URL.","delivery_method":"web_download","file_information":[{"context":"Triage","value":"https://example.com/reports/sample-report/"},{"context":"cape","value":"https://www.capesandbox.com/analysis/74739/"},{"context":"dropped_by_malware","value":"Gcleaner"},{"context":"CAPE","value":"https://www.capesandbox.com/analysis/74739/"},{"context":"CERT-PL_MWDB","value":"https://mwdb.cert.pl/sample/7440b95338789678c5bf195994b745fc625b557b1cf966f007e275c3fa09fffd/"}],"file_name":"file","file_size":3083088,"file_type":"exe","file_type_mime":"application/x-dosexec","first_seen":"2026-07-15T07:23:51Z","humanhash":"kentucky-nuts-indigo-ohio","imphash":"d42595b695fc008ef2c56aabd8efd68e","intelligence":{"downloads":0,"uploads":1},"magika":"pebin","md5_hash":"6d6c79e147b0db39db9ed8188ecfb294","reporter":"test_reporter","sha1_hash":"08d38a320a41d8fbc32111747172363f584d6974","sha256_hash":"7440b95338789678c5bf195994b745fc625b557b1cf966f007e275c3fa09fffd","sha3_384_hash":"9e984fb34d0ffc9d578f6924ce3e14d46e7097ce56c0cea2ed26cee149a297f38f581f28fe3099e46805bbc87241fe99","signature":"RemusStealer","ssdeep":"49152:h7nt3GVbxtFsGQ3t489f7/AKG0dBCbVTKjDhYzofs/S/iKSrkGHV45:h7tOxzNNVe","tags":["exe","signed","dropped-by-gcleaner","a","mix1.file","remusstealer"],"tlsh":"T15CE54B077D9104E5C0AA9B3585BA1142BB74BC4C4B3137EB2E90BA782F337D1AD7AB54","trid":["33.1% (.EXE) Win64 Executable (generic) (6522/11/2)","25.6% (.EXE) Win16 NE executable (generic) (5038/12/1)","10.4% (.ICL) Windows Icons Library (generic) (2059/9)","10.3% (.EXE) OS/2 Executable (generic) (2029/13)","10.1% (.EXE) Generic Win/DOS Executable (2002/3)"],"vendor_intel":{"cape":{"link":"https://www.capesandbox.com/analysis/74739/"}}}
{"anonymous":false,"comment":"Distributed via malicious download URL.","delivery_method":"web_download","file_information":[{"context":"dropped_by_md5","value":"acb230d42a8be7be6b9f85a27438faf9"},{"context":"URLhaus","value":"https://urlhaus.abuse.ch/url/3886648/"},{"context":"dropped_by_sha256","value":"e06d110324cf8a23b160aa2ae2d8002ab076d5ddbf33684c7cc36919f8cd10d0"},{"context":"CERT-PL_MWDB","value":"https://mwdb.cert.pl/sample/2dd3f62c60045654a7e8f376ddab648ea9bd2f6c0d85d5d30ff8e118dda19dbf/"},{"context":"Triage","value":"https://example.com/reports/sample-report/"}],"file_name":"2dd3f62c60045654.elf","file_size":136064,"file_type":"elf","file_type_mime":"application/x-executable","first_seen":"2026-07-15T07:14:35Z","humanhash":"fanta-green-tango-friend","intelligence":{"clamav":["Unix.Trojan.Mirai-10056451-0","Unix.Trojan.Mirai-10058917-0","Unix.Trojan.Gafgyt-10059182-0","Unix.Malware.Mirai-10059790-0","SecuriteInfo.com.Linux.Mirai-32.UNOFFICIAL"],"downloads":0,"uploads":1},"magika":"elf","md5_hash":"571b1e70f201df9b3558e93986fcb35c","reporter":"abuse_ch","sha1_hash":"9e866b2c2549ddc6bb324225c5c26d46d195884d","sha256_hash":"2dd3f62c60045654a7e8f376ddab648ea9bd2f6c0d85d5d30ff8e118dda19dbf","sha3_384_hash":"469ea6b5d138ed841c8a3985445710e893cfcd6d3c1bca527b472ab33a8df0ddb67d6c212d0ec0587bafd4a3e5c7f60f","signature":"Mirai","ssdeep":"3072:lAF2acRfkY6z3xv+ErH4vk9954rlvLFZW8YYQF:yIRfe3xvvSrlvZZ7UF","tags":["elf","upx-dec","mirai","gafgyt"],"telfhash":"t1c331eeb14e9a366812c7a712f319bf69f073150205f1f4e99d376de8ce123824fa30a2","tlsh":"T100D35C0A79D270FCC687D170926E9F61EA3A745C02183DBBA3C2AE711937DD05E15F62","trid":["50.1% (.) ELF Executable and Linkable format (Linux) (4022/12)","49.8% (.O) ELF Executable and Linkable format (generic) (4000/1)"]}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fields:
tags:
- preserve_original_event
_conf:
ioc_expiration_duration: 5d
Loading
Loading