-
Notifications
You must be signed in to change notification settings - Fork 81
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
'Valid HTTPS' key-value inconsistent across platforms #149
Comments
Running off of the CLI (
[
{
"Base Domain": "worklife4you.com",
"Base Domain HSTS Preloaded": false,
...
"Valid HTTPS": null, Though when I use the CLI and have it output in CSV mode, I get
When running this from the Python API in
In the latest git-versioned pshtt, https://github.com/dhs-ncats/pshtt/blob/develop/pshtt/pshtt.py#L139-L148 for header in HEADERS:
if header in ("HSTS Header", "HSTS Max Age", "Redirect To"):
continue
if result[header] is None:
result[header] = False But previously in 0.3.0, the behavior was to only apply this change to CSV output. The commit that changed this was a44ab68 and on October 21, 2017, but it wasn't merged in in #125 until October 24th, the day after 0.3.0 was published. |
@refayathaque Given this, I think you're seeing two issues:
If you can share a full JSON output of the scan results ( |
@refayathaque You are probably already aware of this, but you can install from the GitHub repo via pip like this: pip install git+https://github.com/dhs-ncats/pshtt.git@develop Thanks to @konklone for investigating this issue! |
@refayathaque, are you still seeing this issue with the latest code from |
Hi @jsf9k apologies but I wasn't notified when you and @konklone began to respond to my inquiry. I was only made aware of this over the weekend by a colleague. Thank you so much for your help, let me run the tests you two have recommended, and then I'll get back to you. @jsf9k I actually wasn't aware that you can do pip installs directly off of github, that's quite neat, I'll definitely need to try that out as well. However, in the past, we have encountered innumerable difficulties running the pshtt module in AWS Lambda. AWS Lambda, being essentially run in an Amazon Linux AMI, requires these very specific .so files for the pshtt, and all its supporting modules, to run. Getting these .so files is a nightmare and requires us to 'build from source', something my junior developer repertoire lacks. |
@refayathaque, no worries. Regarding running in AWS Lambda, if you want to run |
@konklone getting back to you with the JSON objects you asked for. The first is from our Lambda function running the pshtt scan (FYI we are NOT running
And here is what is being return in my terminal after running
You're absolutely correct about the CSV serialization. So if I run just |
@refayathaque, are you using the lambda zip in the When I run in lambda using a zip I recently built, I get these (admittedly difficult to read - apologies for that) results:
Note that |
@refayathaque ah, nevermind, it looks like you built your own zip. I should read more carefully. :) |
@jsf9k thanks for getting back! Yes, we built our own zip file and pushed the deployment package up to Lambda. I am now experimenting with the latest code from the pshtt repo (did
|
@refayathaque you need to add a line like this to trigger the work. This changed about four months ago, and |
@jsf9k thanks for getting back. We will test this once we get a chance, but before we do, a couple of questions. results = list(results) return results[0] Thank you so much for all your help! |
@refayathaque |
@refayathaque Once you do |
Hi @konklone and @jsf9k, thank you once again for guiding us on how to use the most recent version of the module, we pip installed directly off the repo and used the new scan function invocation. We are now running our scans off the repo, and we seem to be getting the same results as before, at least for three test cases, and we are a little perplexed by the results. Allow me to elaborate.
Thank you! |
Are you maybe using an old version of |
…max/ghaction-github-status-4 Bump crazy-max/ghaction-github-status from 3 to 4
We are utilizing the pshtt module to determine M-15-13 compliance for certain websites. We are running pshtt off of a python script that is invoking the 'inspect_domains' method to get all relevant results. As part of our testing we have been running the same method in multiple places, namely our local machine and our cloud instances (the pshtt versions are the same on both), additionally, we are also running tests by calling 'pshtt' directly from bash. In all three examples, we are seeing different results for a couple of specific 'key-value' pairs. Provided below is one example of the issues we are facing.
www.worklife4you.com - for this domain we are seeing three different Boolean values for 'Valid HTTPS'.
Thank you so much for helping us out with this.
The text was updated successfully, but these errors were encountered: