Glassworm is back: A new wave of invisible Unicode attacks hits repositories
1–10 of 201 posts
Re: Glassworm is back: A new wave of invisible Unicode attacks hits repositories
#2Re: Glassworm is back: A new wave of invisible Unicode attacks hits repositories
#3Re: Glassworm is back: A new wave of invisible Unicode attacks hits repositories
#4Why didn't some make av rule to find stuff like this, they are just plain text files
Re: Glassworm is back: A new wave of invisible Unicode attacks hits repositories
#5Re: Glassworm is back: A new wave of invisible Unicode attacks hits repositories
#6Why didn't some make av rule to find stuff like this, they are just plain text files
Then, any appearance of unprintable characters should also be flagged. There are rather few legitimate uses of some zero-width characters, like ZWJ in emoji composition. Ideally all such characters should be inserted as \xNNNN escape sequences, and not literal characters.
Simple lint rules would suffice for that, with zero AI involvement.
Re: Glassworm is back: A new wave of invisible Unicode attacks hits repositories
#7Re: Glassworm is back: A new wave of invisible Unicode attacks hits repositories
#8Sure, third-party services like the OP can provide bots that can scan. But if you create an ecosystem in which PRs can be submitted by threat actors, part of your commitment to the community should be to provide visibility into attacks that cannot be seen by the naked eye, and make that protection the norm rather than the exception.
[0] https://docs.github.com/en/get-started/learning-about-github...
Re: Glassworm is back: A new wave of invisible Unicode attacks hits repositories
#9The `eval` alone should be enough of a red flag
Re: Glassworm is back: A new wave of invisible Unicode attacks hits repositories
#10Why didn't some make av rule to find stuff like this, they are just plain text files
The rule must be very simple: any occurrence of `eval()` should be a BIG RED FLAG. It should be handled like a live bomb, which it is. Then, any appearance of unprintable characters should also be flagged. There are rather few legitimate uses of some zero-width characters, like ZWJ in emoji composition. Ideally all such characters should be inserted as \xNNNN escape sequences, and not literal characters. Simple lint…
I have considered allowing a short list that does not include emojis, joining characters, and so on - basically just currency symbols, accent marks, and everything else you'd find in CP-1521 but never got around to it.