Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add secure note token #138

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

olivercoad
Copy link

This is a bit of a work in progress that @cdilga and I have been playing around with.

It implements a new token we're calling "Secure Note" (happy to change the name). We'd like feedback on what people think of the concept.

The basic idea is that you can add an extra note that is encrypted and can only be decrypted using the original url (it gets the decryption key from the url fragment). The use case is for organisations/individuals that want to store an important key or password or something for disaster recovery, but want to be notified in case someone retrieves it.

image

image

olivercoad and others added 5 commits February 10, 2022 20:21
Co-authored-by: Chris <cdilga@users.noreply.github.com>
Todo decryption

Co-authored-by: Chris <cdilga@users.noreply.github.com>
Add secret key to url fragment automatically

Co-authored-by: Chris <cdilga@users.noreply.github.com>
Uses generate_new.html as a template for the new secure_note.html
to generate a consistent ui with other canarytoken pages.
Includes necessary handling to operate without javascript.
Uses existing libraries to add styles.

Co-authored-by: oli <oliver.coad@gmail.com>
@olivercoad
Copy link
Author

To clarify what the use is.

Other tokens are meant to be stealthy so that an attacker trips over them. But if the attacker is wary about the presence of canary tokens, they could avoid tripping them. For example if you put your passwords in an excel document, the attacker could just turn off their internet before viewing the excel document and you would never be notified that they now have your passwords.

Conversely, the contents of a secure note cannot be retrieved without tripping the token.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants