Skip to content

Plugin-run executes a mock WASM payload instead of selected artifact #105

Open

Description

@shieldx-bot

Description: runPlugin constructs mockWasmData := []byte("\x00asm\x01\x00\x00\x00") and executes it rather than the actual plugin artifact fetched by ArtifactID. This both hides execution of real plugin artifacts (gap in functional path) and may allow attackers to trigger execution paths that are not exercised in production testing.
Location: shared/shieldx-sdk/plugin_registry/main.go (runPlugin handler).
Recommendation: Execute the real artifact retrieved from the artifact store after verifying permissions. If mock execution is required in dev/test, gate it behind a dev-only flag and never enable in prod.
Done when: runPlugin executes actual artifact bytes after verification; dev-only mocks are disabled in prod builds and tested accordingly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededsecuritysystem security vulnerabilities

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions