Skip to content

New Rule: Detect invisible characters #116

@nzakas

Description

@nzakas

Rule details

The rule should detect the presence of \u3164 and \uFFA0, which are letters that don't have any visible portion.

Related CVE

https://trojansource.codes/

Example code

const checkCommands = [
        'ping -c 1 google.com',
        'curl -s http://example.com/',\u3164
    ];

Participation

  • I am willing to submit a pull request to implement this rule.

Additional comments

More details:
https://certitude.consulting/blog/en/invisible-backdoor/

Ported from:
eslint/eslint#15281

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions