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

CLI support for Microsoft SecureScore report conversion #2742

Merged
merged 45 commits into from
Aug 7, 2024
Merged

Conversation

meme112233
Copy link
Contributor

CLI support for converting Microsoft SecureScore reprots to OHDF format.

Mapping support provided via mitre/heimdall2#6007

This provides 2 modes of operation:

  1. conversion from pre-downlaoded REST endpoint files
  2. conversion after CLI downloads from REST endpoints using supplied creds
# edit and source this file to load credentials
export TENANT="<TENANT_ID>"
export APP="<APP_ID>"
export SECRET="<APP_SECRET>"
./bin/run convert msftSecureScore2hdf -t "$TENANT" -a "$APP"  -s "$SECRET"  -o <OUT_FILE>

@charleshu-8 charleshu-8 added the enhancement New feature or request label Jul 23, 2024
src/commands/convert/msftSecureScore2hdf.ts Outdated Show resolved Hide resolved
src/commands/convert/index.ts Show resolved Hide resolved
src/commands/convert/msftSecureScore2hdf.ts Outdated Show resolved Hide resolved
src/commands/convert/msftSecureScore2hdf.ts Outdated Show resolved Hide resolved
src/commands/convert/msftSecureScore2hdf.ts Outdated Show resolved Hide resolved
src/commands/convert/msftSecureScore2hdf.ts Outdated Show resolved Hide resolved
src/commands/convert/msftSecureScore2hdf.ts Outdated Show resolved Hide resolved
src/commands/convert/msftSecureScore2hdf.ts Outdated Show resolved Hide resolved
src/commands/convert/msftSecureScore2hdf.ts Outdated Show resolved Hide resolved
src/commands/convert/msftSecureScore2hdf.ts Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
src/commands/convert/index.ts Outdated Show resolved Hide resolved
src/commands/convert/index.ts Outdated Show resolved Hide resolved
src/commands/convert/msft_secure2hdf.ts Show resolved Hide resolved
src/commands/convert/msft_secure2hdf.ts Show resolved Hide resolved
src/commands/convert/msft_secure2hdf.ts Show resolved Hide resolved
src/commands/convert/msft_secure2hdf.ts Outdated Show resolved Hide resolved
src/commands/convert/msft_secure2hdf.ts Outdated Show resolved Hide resolved
@meme112233
Copy link
Contributor Author

Per comment, added an input option -i which consists of the exact file input format as the mapper.

src/commands/convert/msft_secure2hdf.ts Show resolved Hide resolved
src/commands/convert/index.ts Outdated Show resolved Hide resolved
@mitre mitre deleted a comment from JH-Klevin Aug 5, 2024
Copy link
Contributor

mergify bot commented Aug 5, 2024

This pull request has a conflict. Could you fix it @meme112233?

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
src/commands/convert/msft_secure2hdf.ts Outdated Show resolved Hide resolved
src/commands/convert/msft_secure2hdf.ts Outdated Show resolved Hide resolved
src/commands/convert/msft_secure2hdf.ts Outdated Show resolved Hide resolved
meme112233 and others added 15 commits August 6, 2024 14:45
Co-authored-by: Amndeep Singh Mann <[email protected]>
Co-authored-by: Amndeep Singh Mann <[email protected]>
Co-authored-by: Amndeep Singh Mann <[email protected]>
Co-authored-by: Amndeep Singh Mann <[email protected]>
…e mapper and also modified the test so that it could find the generated files (was expecting just the -o parameter but it also always adds some other info to the filepath) and modified the test so that it would match the data structures properly

Signed-off-by: Amndeep Singh Mann <[email protected]>
Signed-off-by: Amndeep Singh Mann <[email protected]>
Copy link

sonarcloud bot commented Aug 7, 2024

@Amndeep7 Amndeep7 merged commit 55cce0b into main Aug 7, 2024
12 of 13 checks passed
@Amndeep7 Amndeep7 deleted the meme-working branch August 7, 2024 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants