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

Added check for hard coded API key in Typescript #62

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

Conversation

pkalyankumar1010
Copy link

Hard Coded API keys when exposed can be used by hackers and can cause severe damage

Copy link

vercel bot commented Feb 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
globstar ⬜️ Ignored (Inspect) Visit Preview Feb 23, 2025 9:10am

@pkalyankumar1010 pkalyankumar1010 changed the title Add check for hard coded API key in Typescript Added check for hard coded API key in Typescript Feb 23, 2025
category: security

pattern: |
(lexical_declaration
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pattern only looks at the variable name, not the value. This will result in a lot of false positives. It's best to implement such a checker using the Go API, to handle complex cases, and entropy etc. Look at #27 for details.

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