Skip to content

Conversation

RasmusWL
Copy link
Member

@RasmusWL RasmusWL commented Jun 8, 2022

Also improves library modeling. I did not look into libtaxii or pycurl, it did not seem worth the time.

I left in a few TODO: Handling of insecure SSLContext ... for relevant libraries, I'll leave handling those as future work. We're going to be in a much better state with the changes in this PR 👍

@RasmusWL
Copy link
Member Author

RasmusWL commented Jun 8, 2022

We might also consider changing the precision to high.

@calumgrant calumgrant requested a review from yoff June 14, 2022 08:15
Copy link
Contributor

@yoff yoff left a comment

Choose a reason for hiding this comment

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

A single suggestion (that will hopefully pass the test), but LGTM.
I like how readable it all is using API::CallNode :-)

argumentOrigin.asExpr().(ImmutableLiteral).booleanValue() = false and
not argumentOrigin.asExpr() instanceof None
)
// TODO: Handling of SSLContext passed as ssl/ssl_context arguments
Copy link
Contributor

Choose a reason for hiding this comment

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

I feel this would need a treatment similar to the SecureProtocol queries, making it difficult to fit into a single predicate like this..

Copy link
Member Author

Choose a reason for hiding this comment

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

We'll have to deal with that when we get there. I think having both disablingNode and argumentOrigin would allow us enough flexibility to get pretty far, but we'll see.

Co-authored-by: yoff <lerchedahl@gmail.com>
@RasmusWL
Copy link
Member Author

For the record, performance looks fine, and so does the new results from the additional modeling.

@RasmusWL RasmusWL requested a review from yoff June 14, 2022 15:36
Copy link
Contributor

@yoff yoff left a comment

Choose a reason for hiding this comment

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

LGTM, I like how you made the alert have more information only in cases where that information adds value.

@yoff yoff merged commit 9dbb451 into github:main Jun 15, 2022
@RasmusWL RasmusWL deleted the req-wo-cert-validation branch August 1, 2022 09:38
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.

2 participants