Skip to content

doc(security,aot): added security guidance around AoT binaries#4867

Open
srberard wants to merge 4 commits intobytecodealliance:mainfrom
srberard:dev/security-guidance-updates
Open

doc(security,aot): added security guidance around AoT binaries#4867
srberard wants to merge 4 commits intobytecodealliance:mainfrom
srberard:dev/security-guidance-updates

Conversation

@srberard
Copy link
Copy Markdown
Contributor

@srberard srberard commented Mar 7, 2026

Adds explicit guidance distinguishing trusted AoT binaries from untrusted Wasm binaries, clarifies that malformed/manipulated AoT files are bugs not security issues, and cleans up wording in the security checklist section.

Adds explicit guidance distinguishing trusted AoT binaries from untrusted
Wasm binaries, clarifies that malformed/manipulated AoT files are bugs not
security issues, and cleans up wording in the security checklist section.

Signed-off-by: Stephen Berard <stephen.berard@outlook.com>
Copilot AI review requested due to automatic review settings March 7, 2026 12:44
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the security guidance doc to clarify how to classify security issues vs bugs when dealing with untrusted Wasm inputs versus trusted AoT outputs, and to refine the reporting checklist language.

Changes:

  • Adds explicit guidance distinguishing untrusted WebAssembly binaries from trusted, toolchain-produced AoT binaries.
  • Clarifies when AoT-related crashes/sandbox breaches should be treated as security issues (toolchain emission) vs non-security bugs (malformed/manipulated AoT artifacts).
  • Edits the “crash or hang” checklist section and removes a formatting artifact.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

if a bug **results in crash or hang**, please treat it as a security problem and report it to a security advisor. The maintainer will look into it and change its category if needed. It is better safe than sorry.

If the author of an issue(results in crash or hang) can go through the following checklist and answer all questions with "No", it is fine to mark it as a regular bug. If not, please report it as a security issue.
If the author of an issue(results in crash or hang) can go through the checklist below and answer all questions with "No", it is fine to mark it as a regular bug. If not, please report it as a security issue.
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.

The original idea here is to use an easily recognizable characteristic to let the author finish a quick initial triage. Maybe a better description would be:

  • If an issue is a hang or crash, report it as a security issue.
  • If an issue doesn't end up with a hang or crash, but allows any of the following questions to be answered as YES, report it as a security issue.

But is this too strict?

If the author of an issue(results in crash or hang) can go through the following checklist and answer all questions with "No", it is fine to mark it as a regular bug. If not, please report it as a security issue.
If the author of an issue(results in crash or hang) can go through the checklist below and answer all questions with "No", it is fine to mark it as a regular bug. If not, please report it as a security issue.

Does the
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.

maybe we can provide a list with WASM/WAMR-specific questions, such as escaping the sandbox, exposing unauthorized WASI APIs, and so on.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated. I simplified and updated the question list.

srberard and others added 3 commits March 31, 2026 11:26
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Stephen Berard <stephen.berard@outlook.com>
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.

3 participants