Skip to content

Changed reliance from Regex to presidio library and removed hardcoded report#11

Merged
raymondchoy14 merged 19 commits into
Redback-Operations:mainfrom
RamGcia:main
Dec 2, 2025
Merged

Changed reliance from Regex to presidio library and removed hardcoded report#11
raymondchoy14 merged 19 commits into
Redback-Operations:mainfrom
RamGcia:main

Conversation

@RamGcia
Copy link
Copy Markdown
Contributor

@RamGcia RamGcia commented Nov 19, 2025

I have made some changes to the asset-assessment scanner.

I found that there was a major security flaw when the scanner had reported findings and saved into a file called report.json. When a member would alter the code and git push their iteration of the code, it would include the scan that it had done.

Screenshot 2025-11-19 121206

The hardcoded information includes path directory of the file scanned and the information it had found.

I have also utilised AI to help me alter the reliance on regex patterns for PII scanning to a well-known library for enhanced scan accuracy. It is the presidio library, in which it is being utilised by microsoft for their own PII scans.

2. Found that previous iterations of scanner had hardcoded scanned information including PII and file directory in report.json, have now changed it so that it uploads locally and gitignores report.json file when .commit.
@RamGcia RamGcia requested review from a team November 24, 2025 05:47
@RamGcia RamGcia removed request for a team November 27, 2025 00:23
@RamGcia
Copy link
Copy Markdown
Contributor Author

RamGcia commented Nov 27, 2025

Latest iteration has added a main.py file that previous cohorts did not have. In workflow, it now ignores a report.json upload, utilises the proper version which is was making previous scans fail. The workflow now has a proper main.py file in place.

Other commits have iterations such as dependencies improvement.

raymondchoy14

This comment was marked as resolved.

Copy link
Copy Markdown
Contributor

@raymondchoy14 raymondchoy14 left a comment

Choose a reason for hiding this comment

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

It's all good

@RamGcia RamGcia requested a review from raymondchoy14 December 2, 2025 04:00
@RamGcia RamGcia assigned RamGcia and raymondchoy14 and unassigned RamGcia Dec 2, 2025
Copy link
Copy Markdown
Contributor

@raymondchoy14 raymondchoy14 left a comment

Choose a reason for hiding this comment

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

all good

@raymondchoy14 raymondchoy14 merged commit dd3b76a into Redback-Operations:main Dec 2, 2025
1 check passed
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.

2 participants