Skip to content

Commit

Permalink
Tweak pass through of source port field
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkst-quinn committed Feb 14, 2025
1 parent 19756b5 commit 54d0918
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion canarytokens/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
log = Logger()



class Channel(object):
CHANNEL = "Base"

Expand Down Expand Up @@ -94,6 +93,7 @@ def gather_alert_details(
channel=cls.CHANNEL,
token_type=canarydrop.type,
src_ip=hit.src_ip,
src_port=hit.src_port,
time=datetime.datetime.utcnow(),
memo=Memo(canarydrop.memo),
token=canarydrop.canarytoken.value(),
Expand Down
1 change: 1 addition & 0 deletions canarytokens/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2266,6 +2266,7 @@ class TokenAlertDetails(BaseModel):
channel: str = "DNS"
token_type: TokenTypes = TokenTypes.DNS
src_ip: Optional[str] = "127.0.0.1"
src_port: Optional[int] = 1
src_data: Optional[dict[str, Any]] = None
token: str = "default_token_for_v2"

Expand Down

0 comments on commit 54d0918

Please sign in to comment.