Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial stab at a new token that uses CSS to detect a cloned website Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Fix naming scheme for CSS cloned site token Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Added the expected referrer field for css cloned site Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Tying in the JS preprocessing to the request Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Fix referer grabbing Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Polishing the CSS token Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Show the referrer for a CSS clone site Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Mark default CSS as important to override other styles Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Force HTTP by default to prevent it being blocked Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Move to a CF function-based CSS cloned site Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Actually call the canarytoken.value function :S Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Show the passed referer Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Added CSS download functionality to the CSS cloned site token Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Fixing download button Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Initial progress on Azure app integration Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Actually add the new logic to the repo Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Adding reqs to poetry list Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Update poetry lock Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Updating around a pyOpenSSL error Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Fix typo in generate button and css_landing_handling Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Fix typo in GraphClient creation Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Minor UX improvements Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Change secret to str to allow for use in azure.identity objects Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Fix redirect function call Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Fix redirect function call again Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Fix redirect function call again v2 Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Addressing Jay's comments about None checking Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Separate AWS-side code from the AWS token to avoid confusion Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Improved error handling and information conveyed to user Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Fixing a JS issue, adding a link to MS docs, and remove some old testing comments Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Remove code from status Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Improve docs and form-control CSS Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Restore missing CSS from merge Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Add newline to install button Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Change away from the msgraph client that's depreciated Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Fix type in auth header Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Add logging for Azure Graph API failures Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Add styling to azure css page * Add logic to create an OrganizationalBranding object if one doesn't exist Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Set content-type Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Add steps for azure token * Sort out remaining html * Update deps Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Added flow to check for existing CSS and concatinate them when safe Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Fix typo in URL Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Remove empty code block from status page Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Fix JSON encoding Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Make automatic vs manual more clear * Clean up a duplicate variable declaration Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Added reference material for Graph API calls Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Fix manual step link * Fix pre-commit issues * Fix more precommit issue * Fixes to UI * First stab at separately the CSS and Entra token Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Added CSS callback Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Fixes for split token UI Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Adding the referrer data to email notice Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Update FastAPI to latest same minor Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Fix URL test failure Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Fix some class names * Fix frontend tests * Defang suspected phishing URLs from email alerts Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Fix unit test * Bump Coverage and remove coverage from Windows tests * Fix slow redirect test * Styling tweaks Replace entra png * Update the CF Function to log missing Referer headers, and further defanging of the phishing URLs Signed-off-by: Jacob Torrey <jacob@thinkst.com> * Make precommit happy * rm comment --------- Signed-off-by: Jacob Torrey <jacob@thinkst.com> Co-authored-by: Jason Bissict <jason@thinkst.com> Co-authored-by: Max Mclaughlin <max@thinkst.com>
- Loading branch information