Skip to content

Commit f75bddc

Browse files
Update
1 parent 940dfa0 commit f75bddc

File tree

3 files changed

+59
-38
lines changed

3 files changed

+59
-38
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,10 @@ v2.10.0 (2025-06-23)
8484

8585
### Improvements
8686
- **Scenarios and Workflows** notebooks:
87-
- Added the `TAXII_data_filtering` notebook.
87+
- Added the `TAXII_data_filtering` notebook.
88+
89+
90+
v2.10.0 (2025-10-01)
91+
-------------------
92+
- **Scenarios and Workflows** notebooks:
93+
- Fixed minor issues in the `advanced_search_using_network_indicators.ipynb` notebook.

Scenarios and Workflows/advanced_search_using_network_indicators.ipynb

Lines changed: 51 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,14 @@
2626
},
2727
{
2828
"cell_type": "code",
29-
"execution_count": 1,
29+
"execution_count": 2,
3030
"id": "59ab69c2",
31-
"metadata": {},
31+
"metadata": {
32+
"ExecuteTime": {
33+
"end_time": "2025-09-30T22:33:28.895480027Z",
34+
"start_time": "2025-09-30T22:33:28.832413744Z"
35+
}
36+
},
3237
"outputs": [],
3338
"source": [
3439
"from ReversingLabs.SDK.ticloud import AdvancedSearch\n",
@@ -51,38 +56,54 @@
5156
},
5257
{
5358
"cell_type": "code",
54-
"execution_count": 2,
59+
"execution_count": 9,
5560
"id": "66ed0816",
56-
"metadata": {},
61+
"metadata": {
62+
"ExecuteTime": {
63+
"end_time": "2025-09-30T22:38:20.732097504Z",
64+
"start_time": "2025-09-30T22:38:20.726257601Z"
65+
}
66+
},
5767
"outputs": [],
5868
"source": [
5969
"import json\n",
6070
"import re\n",
6171
"\n",
62-
"# ---------------------------------------------------\n",
63-
"# Configuration\n",
64-
"# ---------------------------------------------------\n",
65-
"SERVER = \"<server>\"\n",
66-
"USERNAME = \"username\"\n",
67-
"PASSWORD = \"password\"\n",
68-
"USER_AGENT= \"ReversingLabs SDK Cookbook v2.9.0\""
72+
"\n",
73+
"CREDENTIALS = json.load(open('credentials.json'))\n",
74+
"USERNAME = CREDENTIALS.get(\"ticloud\").get(\"username\")\n",
75+
"PASSWORD = CREDENTIALS.get(\"ticloud\").get(\"password\")\n",
76+
"USER_AGENT = json.load(open('../user_agent.json'))[\"user_agent\"]\n",
77+
"HOST = \"https://data.reversinglabs.com\"\n",
78+
"\n",
79+
"config = {\n",
80+
" \"host\": HOST,\n",
81+
" \"username\": USERNAME,\n",
82+
" \"password\": PASSWORD,\n",
83+
" \"user_agent\": USER_AGENT\n",
84+
"}\n"
6985
]
7086
},
7187
{
7288
"cell_type": "markdown",
7389
"id": "d5beb2d8",
7490
"metadata": {},
7591
"source": [
76-
"# 3. Filter query string\n",
92+
"/# 3. Filter query string\n",
7793
"This code block defines a Python dictionary named QUERY_STRING that sets up the parameters for an API query to the ReversingLabs platform. When running this in a Jupyter Notebook, it forms the basis for the search request by specifying filters, pagination, and the desired response format.\n",
7894
"Addiditonal options available here: https://docs.reversinglabs.com/SpectraIntelligence/API/MalwareHunting/tca-0320"
7995
]
8096
},
8197
{
8298
"cell_type": "code",
83-
"execution_count": 3,
99+
"execution_count": 10,
84100
"id": "791783de",
85-
"metadata": {},
101+
"metadata": {
102+
"ExecuteTime": {
103+
"end_time": "2025-09-30T22:38:25.551755262Z",
104+
"start_time": "2025-09-30T22:38:25.511153908Z"
105+
}
106+
},
86107
"outputs": [],
87108
"source": [
88109
"QUERY_STRING = 'firstseen:[2025-02-20T00:00:00Z TO *] classification:[malicious, suspicious] filetype:EXE uri:\"https://api.telegram.org/bot*\" size:[0 TO *]'\n",
@@ -102,9 +123,14 @@
102123
},
103124
{
104125
"cell_type": "code",
105-
"execution_count": 4,
126+
"execution_count": 11,
106127
"id": "dbdf8739",
107-
"metadata": {},
128+
"metadata": {
129+
"ExecuteTime": {
130+
"end_time": "2025-09-30T22:38:28.047287138Z",
131+
"start_time": "2025-09-30T22:38:28.035230497Z"
132+
}
133+
},
108134
"outputs": [],
109135
"source": [
110136
"\n",
@@ -130,9 +156,14 @@
130156
},
131157
{
132158
"cell_type": "code",
133-
"execution_count": 5,
159+
"execution_count": 12,
134160
"id": "067c7c95",
135-
"metadata": {},
161+
"metadata": {
162+
"ExecuteTime": {
163+
"end_time": "2025-09-30T22:38:30.576112670Z",
164+
"start_time": "2025-09-30T22:38:30.567537234Z"
165+
}
166+
},
136167
"outputs": [],
137168
"source": [
138169
"def recursive_search_for_urls(obj, prefix):\n",
@@ -179,15 +210,7 @@
179210
" query_string = QUERY_STRING\n",
180211
" url_prefix = extract_url_prefix_from_string_query(query_string)\n",
181212
" \n",
182-
" search_client = AdvancedSearch(\n",
183-
" host=SERVER,\n",
184-
" username=USERNAME,\n",
185-
" password=PASSWORD,\n",
186-
" verify=True,\n",
187-
" proxies=None,\n",
188-
" user_agent=\"USER_AGENT\",\n",
189-
" allow_none_return=False\n",
190-
" )\n",
213+
" search_client = AdvancedSearch(**config)\n",
191214
"\n",
192215
" try:\n",
193216
" results = search_client.search_aggregated(\n",
@@ -206,15 +229,7 @@
206229
" print(\"No samples found.\")\n",
207230
" return\n",
208231
"\n",
209-
" actions = AdvancedActions(\n",
210-
" host=SERVER,\n",
211-
" username=USERNAME,\n",
212-
" password=PASSWORD,\n",
213-
" verify=True,\n",
214-
" proxies=None,\n",
215-
" user_agent=\"USER_AGENT\",\n",
216-
" allow_none_return=False\n",
217-
" )\n",
232+
" actions = AdvancedActions(**config)\n",
218233
"\n",
219234
" minimal_results = []\n",
220235
" enrichment_success_count = 0\n",

user_agent.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"user_agent": "ReversingLabs SDK Cookbook v2.10.0"
2+
"user_agent": "ReversingLabs SDK Cookbook v2.11.0"
33
}

0 commit comments

Comments
 (0)