Skip to content

Java: Opt-in java/tainted-permissions-check to threat models.#16772

Merged
michaelnebel merged 3 commits into
github:mainfrom
michaelnebel:java/taintedpermissionthreatmodel
Jun 18, 2024
Merged

Java: Opt-in java/tainted-permissions-check to threat models.#16772
michaelnebel merged 3 commits into
github:mainfrom
michaelnebel:java/taintedpermissionthreatmodel

Conversation

@michaelnebel
Copy link
Copy Markdown
Contributor

@michaelnebel michaelnebel commented Jun 17, 2024

In this PR we opt-in the java/tainted-permissions-check to threat models.

Prior to this change, the query used both remote and local sources as input. Now the default is to use only remote sources (as this the threat models default). However, it is possible to enable local (or other) sources by enabling the relevant threat model.

Using MRVA on java top-100 for this query we get

  • 1 result for remote flow sources.
  • 3 results for remote + local flow sources.

DCA looks good; There are no changes to performance or alerts.

It seems that this query doesn't produce an overwhelming number of results in general.

@michaelnebel michaelnebel changed the title Java: Opt-in Java/taintedpermissionthreatmodel to threat models. Java: Opt-in java/tainted-permissions-check to threat models. Jun 17, 2024
@michaelnebel michaelnebel marked this pull request as ready for review June 17, 2024 12:46
@michaelnebel michaelnebel requested a review from a team as a code owner June 17, 2024 12:46
Comment thread java/ql/src/change-notes/2024-06-17-tainted-permissions-check.md Outdated
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com>
@michaelnebel michaelnebel merged commit cd9d58f into github:main Jun 18, 2024
@michaelnebel michaelnebel deleted the java/taintedpermissionthreatmodel branch June 18, 2024 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants