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
9 changes: 5 additions & 4 deletions bbot/core/event/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class BaseEvent:

_always_emit_tags = ["affiliate", "seed"]
# Bypass scope checking and dns resolution, distribute immediately to modules
# This is useful for "end-of-line" events like FINDING and VULNERABILITY
# This is useful for "end-of-line" events like FINDING
_quick_emit = False
# Data validation, if data is a dictionary
_data_validator = None
Expand Down Expand Up @@ -1061,7 +1061,7 @@ def _host(self):

class ClosestHostEvent(DictHostEvent):
# if a host/path/url isn't specified, this event type grabs it from the closest parent
# inherited by FINDING and VULNERABILITY
# inherited by FINDING
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
if not self.host:
Expand Down Expand Up @@ -1551,13 +1551,13 @@ class FINDING(ClosestHostEvent):
"HIGH": "🟥",
"MEDIUM": "🟧",
"LOW": "🟨",
"INFORMATIONAL": "⬜",
"INFO": "⬜",
}

confidence_colors = {
"CONFIRMED": "🟣",
"HIGH": "🔴",
"MODERATE": "🟠",
"MEDIUM": "🟠",
"LOW": "🟡",
"UNKNOWN": "⚪",
}
Expand All @@ -1575,6 +1575,7 @@ class _data_validator(BaseModel):
description: str
confidence: str
url: Optional[str] = None
full_url: Optional[str] = None
path: Optional[str] = None
cves: Optional[list[str]] = None
_validate_url = field_validator("url")(validators.validate_url)
Expand Down
4 changes: 2 additions & 2 deletions bbot/core/helpers/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def validate_host(host: Union[str, ipaddress.IPv4Address, ipaddress.IPv6Address]
raise ValidationError(f'Invalid hostname: "{host}"')


FINDING_SEVERITY_LEVELS = ("INFORMATIONAL", "LOW", "MEDIUM", "HIGH", "CRITICAL")
FINDING_SEVERITY_LEVELS = ("INFO", "LOW", "MEDIUM", "HIGH", "CRITICAL")


@validator
Expand All @@ -140,7 +140,7 @@ def validate_severity(severity: str):
return severity


FINDING_CONFIDENCE_LEVELS = ("UNKNOWN", "LOW", "MODERATE", "HIGH", "CONFIRMED")
FINDING_CONFIDENCE_LEVELS = ("UNKNOWN", "LOW", "MEDIUM", "HIGH", "CONFIRMED")


@validator
Expand Down
44 changes: 0 additions & 44 deletions bbot/modules/azure_realm.py

This file was deleted.

Loading
Loading