thinkst / canarytokens

Canarytokens helps track activity and actions on your network.
http://canarytokens.org
Other
1.76k stars 258 forks source link

Add src ip to canarydrop on token create #597

Closed thinkst-pieter closed 1 month ago

thinkst-pieter commented 1 month ago

Proposed changes

This adds the IP to the canarydrop from which the request came to create the canary token. Testing was also expanded to test for the headers.

The created_from_ip and created_from_ip_x_forwarded_for are optional as to not break existing tokens that do not already have the information.

Types of changes

Checklist