Skip to content

🛡️ Sentinel: Fix missing unsafe serialization sinks in taint tracking - #157

Open
tachyon-beep wants to merge 2 commits into
mainfrom
sentinel/add-missing-deserialization-sinks-16981414530030586415
Open

🛡️ Sentinel: Fix missing unsafe serialization sinks in taint tracking#157
tachyon-beep wants to merge 2 commits into
mainfrom
sentinel/add-missing-deserialization-sinks-16981414530030586415

Conversation

@tachyon-beep

Copy link
Copy Markdown
Collaborator

🚨 Severity: MEDIUM
💡 Vulnerability: The dill, jsonpickle, joblib, and torch deserialization sinks were not mapped in _SERIALISATION_SINKS, meaning validation provenance would not be properly shed when crossing these boundaries.
🎯 Impact: This could lead to false negatives if tainted data flows through these untracked boundaries, resulting in missed remote code execution vectors.
🔧 Fix: Added dill.load, dill.loads, jsonpickle.decode, joblib.load, and torch.load to _SERIALISATION_SINKS in src/wardline/scanner/taint/variable_level.py. numpy.load was intentionally left out because it's conditionally unsafe based on allow_pickle.
✅ Verification: Verified using make test, make typecheck and make lint.


PR created automatically by Jules for task 16981414530030586415 started by @tachyon-beep

The `dill`, `jsonpickle`, `joblib`, and `torch` deserialization sinks
were not mapped in `_SERIALISATION_SINKS`, meaning validation provenance
would not be properly shed when crossing these boundaries.

Added `dill.load`, `dill.loads`, `jsonpickle.decode`, `joblib.load`,
and `torch.load` to `_SERIALISATION_SINKS` in
`src/wardline/scanner/taint/variable_level.py`. `numpy.load` was
intentionally left out because it's conditionally unsafe based on
`allow_pickle`.

Co-authored-by: tachyon-beep <544926+tachyon-beep@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings August 21, 2026 16:17
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates Wardline’s level-2 taint propagation to treat additional third-party deserialization functions as serialization-boundary sinks, ensuring validation provenance is shed (returning UNKNOWN_RAW) when data crosses these boundaries.

Changes:

  • Added dill.load, dill.loads, jsonpickle.decode, joblib.load, and torch.load to _SERIALISATION_SINKS.
  • Ensures these calls are consistently treated as provenance-shedding boundaries during _resolve_call resolution (including alias-closure behavior via build_call_taint_map).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

The `dill`, `jsonpickle`, `joblib`, and `torch` deserialization sinks
were not mapped in `_SERIALISATION_SINKS`, meaning validation provenance
would not be properly shed when crossing these boundaries.

Added `dill.load`, `dill.loads`, `jsonpickle.decode`, `joblib.load`,
and `torch.load` to `_SERIALISATION_SINKS` in
`src/wardline/scanner/taint/variable_level.py`. `numpy.load` was
intentionally left out because it's conditionally unsafe based on
`allow_pickle`.

Co-authored-by: tachyon-beep <544926+tachyon-beep@users.noreply.github.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.

2 participants