Re:CyberChef from GCHQ: Cyber Swiss Army Knife
by Hnrobert42 on Thursday February 01, 2024 @09:37PM
(#39224284)
Is the Magic function anything like running `file` on a Linux/Mac?
[ Parent
| on HN ]
Re:CyberChef from GCHQ: Cyber Swiss Army Knife
by gchq-7703 on Friday February 02, 2024 @11:02AM
(#39230159)
It uses a combination of magic bytes (like the `file` command), entropy analysis and character frequency detection to determine whether an output is likely to be of interest to the user.
The file type mechanism is written here[0]. There's a list of all signatures we detect here[1]. The magic implementation is here[2].
[0] https://github.com/gchq/CyberChef/blob/master/src/core/lib/F... [1] https://github.com/gchq/CyberChef/blob/master/src/core/lib/F... [2] https://github.com/gchq/CyberChef/blob/master/src/core/lib/M...