Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Rule: Detect invisible characters #116

Open
1 task
nzakas opened this issue Feb 28, 2023 · 0 comments
Open
1 task

New Rule: Detect invisible characters #116

nzakas opened this issue Feb 28, 2023 · 0 comments

Comments

@nzakas
Copy link
Contributor

nzakas commented Feb 28, 2023

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

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

No branches or pull requests

1 participant