-
Notifications
You must be signed in to change notification settings - Fork 45
Update main.py #18
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
base: main
Are you sure you want to change the base?
Update main.py #18
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,6 +14,9 @@ | |
| tar_file = '/file.tax*' | ||
| os.system(tar_file) | ||
|
|
||
|
|
||
| assert(True) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| KEY_SIZE = 1024 | ||
| private_rsa_key = rsa.generate_private_key( | ||
| public_exponent=65537, | ||
|
|
@@ -28,6 +31,7 @@ | |
| private_dsa_key_2 = DSA.generate(bits=KEY_SIZE) | ||
|
|
||
| assert(private_dsa_key_2 == private_dsa_key) | ||
| assert(True) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| program = 'a = 5\nb=10\nprint("Sum =", a+b)' | ||
| exec(program) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File: crypto.js | Checkov ID: CKV3_SAST_33
Description
CWE:
CWE-326: Inadequate Encryption StrengthOWASP:
A02:2021-Cryptographic FailuresThis policy detects the use of encryption keys with inadequate size in JavaScript. Encryption keys with a size less than 16 bytes may pose a risk of being brute-forced, leading to vulnerabilities like unauthorized access or data breaches.
Some common patterns this policy checks for include the usage of:
nacl.randomBytesrandomBytesfrom either therandombytesmodule ornode:cryptogetBytesSyncfromnode-forgecryptoRandomStringandcryptoRandomStringAsyncbrorand.RandinstancesExample of violating code: