Skip to content

Commit

Permalink
Change data test's folder name
Browse files Browse the repository at this point in the history
It also obscures the possible secrets in test data
and fixes types annotations
  • Loading branch information
figarrido committed Jul 10, 2023
1 parent 511e647 commit 658d5f7
Show file tree
Hide file tree
Showing 25 changed files with 176 additions and 170 deletions.
4 changes: 2 additions & 2 deletions Packs/ZeroFox/Integrations/ZeroFox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -598,14 +598,14 @@ Looks for registered hashes in ZeroFox's CTI feeds
| ZeroFox.MaliciousHashes.SHA512 | string | Hash in SHA512 format |
| ZeroFox.MaliciousHashes.FoundHash | string | Indicates in which hash format was found the search |

### zerofox-search-exploit
### zerofox-search-exploits

***
Looks for registered exploits in ZeroFox's CTI feeds

#### Base Command

`zerofox-search-exploit`
`zerofox-search-exploits`

#### Input

Expand Down
87 changes: 0 additions & 87 deletions Packs/ZeroFox/Integrations/ZeroFox/TestData/cti/exploits.json

This file was deleted.

This file was deleted.

124 changes: 65 additions & 59 deletions Packs/ZeroFox/Integrations/ZeroFox/ZeroFox_test.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"results": [
{
"domain": "stark.com",
"email": "natasha@stark.com",
"email": "email-address",
"username": "natasha",
"password": "7bb288255cb89d277fed03f3e2c6e724",
"breach_name": "Raid Forums/XSS/Exploit: Stark Data Breach (7,409,054 Records)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"next": null,
"results": [
{
"ip_address": "99.83.33.209",
"ip_address": "ip_address",
"listed_at": "2023-02-09T23:44:09Z",
"bot_name": "andromeda",
"c2_ip_address": "184.105.192.2",
Expand All @@ -28,7 +28,7 @@
]
},
{
"ip_address": "99.83.33.209",
"ip_address": "ip_address",
"listed_at": "2023-02-09T23:44:09Z",
"bot_name": "andromeda",
"c2_ip_address": "184.105.192.2",
Expand All @@ -54,7 +54,7 @@
]
},
{
"ip_address": "99.83.33.209",
"ip_address": "ip_address",
"listed_at": "2023-02-09T23:44:09Z",
"bot_name": "andromeda",
"c2_ip_address": "184.105.192.2",
Expand All @@ -80,7 +80,7 @@
]
},
{
"ip_address": "99.83.33.209",
"ip_address": "ip_address",
"listed_at": "2023-02-27T11:12:35.375167Z",
"bot_name": "andromeda",
"c2_ip_address": "184.105.192.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"family:mal/generic-s"
],
"ip_addresses": [
"64.190.63.111"
"some_ip_address"
],
"updated_at": "2023-06-14T10:56:24Z",
"created_at": "2023-06-14T11:10:48.373715Z"
Expand All @@ -34,7 +34,7 @@
"family:mal/generic-s"
],
"ip_addresses": [
"64.190.63.111"
"some_ip_address"
],
"updated_at": "2023-06-14T23:15:05Z",
"created_at": "2023-06-27T13:03:40.949689Z"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"results": [
{
"domain": "stark.industries",
"email": "tony@stark.industries",
"username": "tony@stark.industries",
"email": "some_email_address",
"username": "some_email_address",
"password": null,
"breach_name": "BreachForums/Amunet: American Academy of Psychiatry and the Law Data Breach (3,001 Records)",
"breach_id": "123",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"results": [
{
"created_at": "2023-06-27T12:31:05Z",
"email": "james@stark.com",
"email": "some_email_address",
"domain": "stark.com",
"tags": [
"family:agenttesla",
Expand Down
87 changes: 87 additions & 0 deletions Packs/ZeroFox/Integrations/ZeroFox/test_data/cti/exploits.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"family": null,
"md5": "e89b43d57a67a3f4d705028cfbd7b6fb",
"sha1": "332c39d5130752b8c32d3b7275a05c13e874db84",
"sha256": "4bc6320085fff7355dd7916a03ef469af0baea9b0a613a1582bdd2a457c6fa40",
"sha256": "****",
"sha512": "809e3b6e2eb34a7a061bb8de610baef25f91c0dee5fe1d2e42d04a0ac42e43b40b1ee4e42352cc7d59322aa5cf4b2645c85fed7f36906d68e22e400d48e437ef",
"tags": [
"evasion",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@
"issued": "1970-01-19T15:18:43.200000Z"
},
"host": {
"ip": "104.26.0.107",
"ip": "some_ip_address",
"asn": 13335,
"geo": "US"
}
},
{
"scanned": "2021-07-12T12:41:38Z",
"domain": "hutsjwt.com",
"url": "https://hutsjwt.com/css/mbt",
"url": "some_url/css/mbt",
"cert": {
"authority": "cPanel, Inc.",
"fingerprint": "871B3BD9A98E83573B8368DFDB09629D4E1777BB",
"issued": "2021-05-09T00:00:00Z"
},
"host": {
"ip": "164.138.221.136",
"ip": "some_ip_address",
"asn": 201200,
"geo": "BG"
}
Expand All @@ -41,7 +41,7 @@
"issued": "2021-06-23T23:25:26Z"
},
"host": {
"ip": "176.236.107.10",
"ip": "some_ip_address",
"asn": 34984,
"geo": "TR"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"id": "1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
{
"id": 560631,
"name": "James Rhodes",
"email_address": "james@stark.com",
"email_address": "some_email_address",
"image": "https://cdn.zerofox.com/media/entityimages/d6b7aaa4-a11.jpg",
"organization": "",
"labels": [
Expand Down Expand Up @@ -136,7 +136,7 @@
{
"id": 560633,
"name": "Natasha Romanoff",
"email_address": "natasha@stark.com",
"email_address": "some_email_address",
"image": "https://cdn.zerofox.com/media/entityimages/23b9551f-2bb.png",
"organization": "",
"labels": [
Expand Down Expand Up @@ -179,7 +179,7 @@
{
"id": 6969249,
"name": "Peter Parker",
"email_address": "pparker@stark.com",
"email_address": "some_email_address",
"image": "https://cdn.zerofox.com/media/entityimages/kv7b3f5ubcp9s79zigjegevdri4o274mu05h6d7ufijgsvr3pp8aiwalihnuvbi4.jpg",
"organization": "",
"labels": [],
Expand Down Expand Up @@ -220,7 +220,7 @@
{
"id": 560636,
"name": "Stark Aviation",
"email_address": "bookings@starkair.com",
"email_address": "some_email_address",
"image": "https://cdn.zerofox.com/media/entityimages/f5544e89-d2f.jpg",
"organization": "",
"labels": [
Expand Down

0 comments on commit 658d5f7

Please sign in to comment.