Skip to content

security(test): add restricted-unpickler regression tests #149

@aviralgarg05

Description

@aviralgarg05

Summary

Add regression tests for restricted pickle loading in semantic cache.

Why

The legacy pickle path includes a restricted unpickler; tests should verify malicious/global class loads are rejected.

Tasks

  • Add tests for allowed builtins and disallowed classes in nexum_ai/tests/
  • Confirm failures do not crash cache initialization
  • Verify cache falls back to safe empty state on invalid payload

Acceptance Criteria

  • Security-sensitive paths are covered by tests
  • Invalid payloads do not execute arbitrary code
  • CI passes on Python test suite

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions