thinkst / canarytokens

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

Use byte string to access user-agent value #562

Closed thinkst-devdua closed 3 months ago

thinkst-devdua commented 3 months ago

Proposed changes

User-Agent value defaults to Unknown currently for all kubeconfig token triggers. This is due to the fact that the code tries to use a normal string to access the value from the headers, whereas all keys and values in the headers dict are byte strings.

Types of changes

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

Before:

image

After:

image