Skip to content

fix(secure): address preflight security scan findings - #1352

Open
vbaddi wants to merge 1 commit into
quic:mainfrom
vbaddi:fix/security-scan-findings
Open

vbaddi wants to merge 1 commit into
quic:mainfrom
vbaddi:fix/security-scan-findings

Conversation

@vbaddi

@vbaddi vbaddi commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Run the Docker image as a non-root user and Execute compiler commands with shell=False and shlex tokenization. Harden SDK XML parsing by rejecting DTDs and external entities.

  Run the Docker image as a non-root user.
  Execute compiler commands with shell=False and shlex tokenization.
  Harden SDK XML parsing by rejecting DTDs and external entities.

Signed-off-by: vbaddi <vbaddi@qti.qualcomm.com>
if base_version_element is not None:
qaic_sdk_version = base_version_element.text
except ET.ParseError as e:
parser = expat.ParserCreate()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This piece of code looks repeated in both files _util.py and nightly_email_report.py. Can unify it at one place and import in other file.


``Mandatory`` Args:
:process (str): Process name for which command is executed.
:command (str): Command to be executed on shell.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Update this doc string

@quic-hemagnih quic-hemagnih left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please take a look at the comments provided in the PR and also add the unit-test.

This branch has not been deployed

No deployments
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