Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Assemblyline/issues/272 (dev)
  • Loading branch information
cccs-rs authored Nov 29, 2024
2 parents 765cb51 + 3de363e commit 1105f88
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions badlist/update_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,6 @@ def prepare_item(bl_item):
references = [r for r in references if re.match(FULL_URI, r)]
badlist_items = []

# Normalize IOC values for when performing lookups
ioc_value = ioc_value.lower()

# Build item for badlist
badlist_item_base = {
"classification": default_classification,
Expand Down Expand Up @@ -188,7 +185,7 @@ def prepare_item(bl_item):
badlist_item.update(
{
"type": "file",
"hashes": {ioc_type: ioc_value},
"hashes": {ioc_type: ioc_value.lower()},
}
)
badlist_items.append(badlist_item)
Expand Down Expand Up @@ -282,7 +279,9 @@ def prepare_item(bl_item):
# Get attribution
attribution = sanitize_data(data.get(source_cfg.get("attribution")), type="attribution")

campaign = sanitize_data(data.get(source_cfg.get("campaign")), type="campaign", validate=False)
campaign = sanitize_data(
data.get(source_cfg.get("campaign")), type="campaign", validate=False
)

for ioc_type in NETWORK_IOC_TYPES + FILEHASH_TYPES:
ioc_value = data.get(source_cfg.get(ioc_type))
Expand Down

0 comments on commit 1105f88

Please sign in to comment.