Skip to content
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

Update DNSTwist to use the pe-reports module and run on all P&E orgs #1988

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

aloftus23
Copy link
Contributor

@aloftus23 aloftus23 commented Jun 15, 2023

fixes #1968

🗣 Description

The DNSTwist scan was updated to run the dnstwist module in the pe-reports repository instead of the typescript implementation.

It is now global and will run on all P&E orgs marked report_on in the P&E organizations table. No vulnerability data will be stored in the Crossfeed database; only the P&E database intstance.

🧪 Testing

To test locally:
Follow normal steps in https://docs.crossfeed.cyber.dhs.gov/dev/quickstart/ with the addition of running:

cd backend
npm run pesyncdb

Create and run a dnstwist scan from the frontend.

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All future TODOs are captured in issues, which are referenced
    in code comments.
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • All relevant repo and/or project documentation has been updated
    to reflect the changes in this PR.
  • Tests have been added and/or modified to cover the changes in this PR.
  • All new and existing tests pass.

✅ Pre-merge checklist

  • Revert dependencies to default branches.
  • Finalize version.

✅ Post-merge checklist

  • Create a release.

@aloftus23 aloftus23 self-assigned this Jun 15, 2023
@aloftus23 aloftus23 linked an issue Jun 15, 2023 that may be closed by this pull request
@@ -14,6 +14,7 @@ const PE_DATA_SCHEMA = `
-- Draft Database Schema to store scan data
-- Includes Domain Masquerading, Credentals Exposed, Inffered Vulns, and Dark Web data


Copy link
Contributor

Choose a reason for hiding this comment

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

What was this change for? Needed for dnstwist?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ya, these changes are needed to run dnstwist in the development environment:

  • P&Es latest database schema
  • Added sample organizations and domains

}
}
const child = spawnSync('python', ['-m', 'pe_source', 'dnstwist'], {
stdio: 'inherit',
Copy link
Contributor

Choose a reason for hiding this comment

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

We should remove dnstwist from dockerfile

@aloftus23 aloftus23 marked this pull request as ready for review July 14, 2023 12:42
@aloftus23
Copy link
Contributor Author

aloftus23 commented Aug 10, 2023

Waiting on pe-source module updates so we can install that inside the worker container instead of pe-reports.

cisagov/pe-source#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Run DNSTwist from P&E reports module (POC)
4 participants