Skip to content

Feature request: Add check for Trojan Source attacks (CVE-2021-42574) #1429

@kfess

Description

@kfess

Feature request

gosec currently does not detect Trojan Source attacks (CVE-2021-42574).
This attack uses Unicode bidirectional control characters to make source code appear different to reviewers than what compilers actually execute.

What I would like to add

Add a new rule that detects Unicode Bidi control characters in source code.

Additional context

I'm happy to submit a PR if this feature is welcomed.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions