A Format Stripper Can Assist White Hat

Red Pill; White Hat; Blue Team!

Source Code uses only printable characters. Unicode provides for fonts, control codes and many other bells and whistles. However, Unicode does not expand the vocabulary of source code.

As such, source code that is tampered with control codes introduced to the text file or the editor (by a bad actor or automaton,) can be scrubbed by a format stripper.

One notable "virus," introduces hidden control codes to combine the direction the processor "parses," from left to right v right to left. Based upon a foundation of tampering direction codes, the file or editor is directed to corrupt the program logic by tampering indentation. This is of less concern with c++20 and other semi-colon delimited languages, but Black Hat has devised improvements, inspired by success against Python using the older method.

The strategy to compile a source-code scrubber would be to read the file in 8-bit bytes, assessing which are ASCII and which are not. Only a finite number of ASCII codes are printable, <tab> among them. By writing out ONLY ASCII/PRINTABLE CHARS, computer users can remove malicious control codes.

While this suggestion can be of substantive assistance to White Hat, Blue team needs to work with knowledgable law enforcement to deter Black Hat that employs so willful an expedient.

There is a time and place to meter the response by the provocation and a time to employ an irrevokable solution.

Tampering logic verges psychological torture. Torture is a violation of the Geneva Conventions!

...and disrupting communications is a tactic of war.

Comments

Popular posts from this blog

A Question About Erasthmus' Sieve

An Improvement To The Three Second Hold Rule

Notice of corrupted results: Vigenere may yet be found to be a "group."