René's URL Explorer Experiment


Title: Java: Query to detect weak encryption: insufficient key size by luchua-bc · Pull Request #4926 · github/codeql · GitHub

Open Graph Title: Java: Query to detect weak encryption: insufficient key size by luchua-bc · Pull Request #4926 · github/codeql

X Title: Java: Query to detect weak encryption: insufficient key size by luchua-bc · Pull Request #4926 · github/codeql

Description: Strength of cryptographic algorithms depends on a sufficient key size to be robust against brute-force attacks. A theoretically sound encryption scheme with an insufficient key size can still be subjected to brute force attacks that have a reasonable chance of succeeding using current attack methods and resources. This type of issues is categorized as CWE-326: Inadequate Encryption Strength. This query finds uses of strong encryption algorithms (AES, DSA, RSA, and EC) with too small a key size. Please consider to merge the PR. Thanks.

Open Graph Description: Strength of cryptographic algorithms depends on a sufficient key size to be robust against brute-force attacks. A theoretically sound encryption scheme with an insufficient key size can still be su...

X Description: Strength of cryptographic algorithms depends on a sufficient key size to be robust against brute-force attacks. A theoretically sound encryption scheme with an insufficient key size can still be su...

Opengraph URL: https://github.com/github/codeql/pull/4926

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:1f4d3eed-ad1e-9c8a-97e3-9d20d47a03d3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE308:7CA5C:2BBA39:3B3880:6A4C7BE5
html-safe-noncea8c1243cad48fb5e0cd83213fdb9a662f77d7c643bbf616ad7c290aaafa6c046
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzA4OjdDQTVDOjJCQkEzOTozQjM4ODA6NkE0QzdCRTUiLCJ2aXNpdG9yX2lkIjoiNzAzNDU1NzE1MTU0OTYxOTE3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac95069200ef6718878f6dd887c9f09d9b83c9d731049040cb2f400fd142e1020a
hovercard-subject-tagpull_request:551314566
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/github/codeql/pull/4926/files
twitter:imagehttps://avatars.githubusercontent.com/u/37377780?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/37377780?s=400&v=4
og:image:altStrength of cryptographic algorithms depends on a sufficient key size to be robust against brute-force attacks. A theoretically sound encryption scheme with an insufficient key size can still be su...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/github/codeql git https://github.com/github/codeql.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id143040428
octolytics-dimension-repository_nwogithub/codeql
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id143040428
octolytics-dimension-repository_network_root_nwogithub/codeql
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release56ac743bebb13694b888673bb7257f4b97a4b7fd
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql/pull/4926/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql%2Fpull%2F4926%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql%2Fpull%2F4926%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=github%2Fcodeql
Reloadhttps://github.com/github/codeql/pull/4926/files
Reloadhttps://github.com/github/codeql/pull/4926/files
Reloadhttps://github.com/github/codeql/pull/4926/files
Please reload this pagehttps://github.com/github/codeql/pull/4926/files
github https://github.com/github
codeqlhttps://github.com/github/codeql
Notifications https://github.com/login?return_to=%2Fgithub%2Fcodeql
Fork 2k https://github.com/login?return_to=%2Fgithub%2Fcodeql
Star 9.8k https://github.com/login?return_to=%2Fgithub%2Fcodeql
Code https://github.com/github/codeql
Issues 987 https://github.com/github/codeql/issues
Pull requests 424 https://github.com/github/codeql/pulls
Discussions https://github.com/github/codeql/discussions
Actions https://github.com/github/codeql/actions
Projects https://github.com/github/codeql/projects
Models https://github.com/github/codeql/models
Security and quality 0 https://github.com/github/codeql/security
Insights https://github.com/github/codeql/pulse
Code https://github.com/github/codeql
Issues https://github.com/github/codeql/issues
Pull requests https://github.com/github/codeql/pulls
Discussions https://github.com/github/codeql/discussions
Actions https://github.com/github/codeql/actions
Projects https://github.com/github/codeql/projects
Models https://github.com/github/codeql/models
Security and quality https://github.com/github/codeql/security
Insights https://github.com/github/codeql/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fgithub%2Fcodeql%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgithub%2Fcodeql%2Fissues%2Fnew%2Fchoose
aschackmullhttps://github.com/aschackmull
github:mainhttps://github.com/github/codeql/tree/main
luchua-bc:java/insufficient-key-sizehttps://github.com/luchua-bc/ql/tree/java/insufficient-key-size
Conversation 45 https://github.com/github/codeql/pull/4926
Findings https://github.com/github/codeql/pull/4926/findings
Commits 7 https://github.com/github/codeql/pull/4926/commits
Checks 0 https://github.com/github/codeql/pull/4926/checks
Files changed https://github.com/github/codeql/pull/4926/files
Please reload this pagehttps://github.com/github/codeql/pull/4926/files
Java: Query to detect weak encryption: insufficient key size https://github.com/github/codeql/pull/4926/files#top
Show all changes 7 commits https://github.com/github/codeql/pull/4926/files
cfc950f Query for weak encryption: Insufficient key size luchua-bc Jan 7, 2021 https://github.com/github/codeql/pull/4926/commits/cfc950f8039ca780b87a6889b2913e6702961b4e
cbaee93 Optimize the query luchua-bc Jan 8, 2021 https://github.com/github/codeql/pull/4926/commits/cbaee937d0ab8962278be494e36eaad5ab24693f
058f3af Refactor the hasShortSymmetricKey method luchua-bc Jan 9, 2021 https://github.com/github/codeql/pull/4926/commits/058f3af4b21bfe3dec4bdcbb84f3bd26c5830dca
2ac7b4b Update qldoc luchua-bc Jan 11, 2021 https://github.com/github/codeql/pull/4926/commits/2ac7b4bab42c4146fb9f629291d049efa43d52e8
ab7d257 Add more cases and change EC to 256 bits luchua-bc Jan 15, 2021 https://github.com/github/codeql/pull/4926/commits/ab7d257569907903cf6731fa10f64c348ad25b46
50be543 Update qldoc luchua-bc Feb 2, 2021 https://github.com/github/codeql/pull/4926/commits/50be54385a6a0ab4d7219c350bd16d1f7e9f1f12
5e3b6fa Update qldoc luchua-bc Feb 2, 2021 https://github.com/github/codeql/pull/4926/commits/5e3b6fa3415d899c6bf2dea25de011244d563cee
Clear filters https://github.com/github/codeql/pull/4926/files
Please reload this pagehttps://github.com/github/codeql/pull/4926/files
Please reload this pagehttps://github.com/github/codeql/pull/4926/files
InsufficientKeySize.java https://github.com/github/codeql/pull/4926/files#diff-2e830bca62b23ff342e66dc20954e93ceea4a1d8f18ffca3ffe9fa0d2e70f3b5
InsufficientKeySize.qhelp https://github.com/github/codeql/pull/4926/files#diff-968a3d8053d1ada945915fbdb02b00198a84fd206d7bca597a3d6fc0a453b6c1
InsufficientKeySize.ql https://github.com/github/codeql/pull/4926/files#diff-0f62f7fe9b8d19f45eab28481cc2ece31912a0aeaeea4a4cc92f1698f1f58598
Encryption.qll https://github.com/github/codeql/pull/4926/files#diff-f1a339240c91ba2a65effe4a748c49f44108b0e302d93bcc37c51528abbf2dfc
InsufficientKeySize.expected https://github.com/github/codeql/pull/4926/files#diff-4104c25c1cf68263b53a8eb2d30c01b0d33edffdd3545516a1e5b95fa684a8e6
InsufficientKeySize.java https://github.com/github/codeql/pull/4926/files#diff-3de0b1fbe5ea42691335449d2345979a3fcb967493b81acc692f5eaf7b3abd81
InsufficientKeySize.qlref https://github.com/github/codeql/pull/4926/files#diff-61ab688d34d04a4a4d516514700650ac9853edaea41093ca56c102518046a42e
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/src/experimental/Security/CWE/CWE-326/InsufficientKeySize.javahttps://github.com/github/codeql/pull/4926/files#diff-2e830bca62b23ff342e66dc20954e93ceea4a1d8f18ffca3ffe9fa0d2e70f3b5
View file https://github.com/luchua-bc/ql/blob/5e3b6fa3415d899c6bf2dea25de011244d563cee/java/ql/src/experimental/Security/CWE/CWE-326/InsufficientKeySize.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/4926/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/src/experimental/Security/CWE/CWE-326/InsufficientKeySize.qhelphttps://github.com/github/codeql/pull/4926/files#diff-968a3d8053d1ada945915fbdb02b00198a84fd206d7bca597a3d6fc0a453b6c1
View file https://github.com/luchua-bc/ql/blob/5e3b6fa3415d899c6bf2dea25de011244d563cee/java/ql/src/experimental/Security/CWE/CWE-326/InsufficientKeySize.qhelp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/4926/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/src/experimental/Security/CWE/CWE-326/InsufficientKeySize.qlhttps://github.com/github/codeql/pull/4926/files#diff-0f62f7fe9b8d19f45eab28481cc2ece31912a0aeaeea4a4cc92f1698f1f58598
View file https://github.com/luchua-bc/ql/blob/5e3b6fa3415d899c6bf2dea25de011244d563cee/java/ql/src/experimental/Security/CWE/CWE-326/InsufficientKeySize.ql
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/4926/{{ revealButtonHref }}
Please reload this pagehttps://github.com/github/codeql/pull/4926/files
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/src/semmle/code/java/security/Encryption.qllhttps://github.com/github/codeql/pull/4926/files#diff-f1a339240c91ba2a65effe4a748c49f44108b0e302d93bcc37c51528abbf2dfc
View file https://github.com/luchua-bc/ql/blob/5e3b6fa3415d899c6bf2dea25de011244d563cee/java/ql/src/semmle/code/java/security/Encryption.qll
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/4926/{{ revealButtonHref }}
https://github.com/github/codeql/pull/4926/files#diff-f1a339240c91ba2a65effe4a748c49f44108b0e302d93bcc37c51528abbf2dfc
https://github.com/github/codeql/pull/4926/files#diff-f1a339240c91ba2a65effe4a748c49f44108b0e302d93bcc37c51528abbf2dfc
https://github.com/github/codeql/pull/4926/files#diff-f1a339240c91ba2a65effe4a748c49f44108b0e302d93bcc37c51528abbf2dfc
https://github.com/github/codeql/pull/4926/files#diff-f1a339240c91ba2a65effe4a748c49f44108b0e302d93bcc37c51528abbf2dfc
https://github.com/github/codeql/pull/4926/files#diff-f1a339240c91ba2a65effe4a748c49f44108b0e302d93bcc37c51528abbf2dfc
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/test/experimental/query-tests/security/CWE-326/InsufficientKeySize.expectedhttps://github.com/github/codeql/pull/4926/files#diff-4104c25c1cf68263b53a8eb2d30c01b0d33edffdd3545516a1e5b95fa684a8e6
View file https://github.com/luchua-bc/ql/blob/5e3b6fa3415d899c6bf2dea25de011244d563cee/java/ql/test/experimental/query-tests/security/CWE-326/InsufficientKeySize.expected
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/4926/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/test/experimental/query-tests/security/CWE-326/InsufficientKeySize.javahttps://github.com/github/codeql/pull/4926/files#diff-3de0b1fbe5ea42691335449d2345979a3fcb967493b81acc692f5eaf7b3abd81
View file https://github.com/luchua-bc/ql/blob/5e3b6fa3415d899c6bf2dea25de011244d563cee/java/ql/test/experimental/query-tests/security/CWE-326/InsufficientKeySize.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/4926/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/test/experimental/query-tests/security/CWE-326/InsufficientKeySize.qlrefhttps://github.com/github/codeql/pull/4926/files#diff-61ab688d34d04a4a4d516514700650ac9853edaea41093ca56c102518046a42e
View file https://github.com/luchua-bc/ql/blob/5e3b6fa3415d899c6bf2dea25de011244d563cee/java/ql/test/experimental/query-tests/security/CWE-326/InsufficientKeySize.qlref
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/4926/{{ revealButtonHref }}
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.