11 ms·
CyberChef – A Cyber Swiss Army Knife
- johansch 10y agoAfter just having watched Oliver Stone's "Snowden" last night it's hard to avoid wondering if there are any potential Snowdens in the GCHQ... It's also a sobering thought that the people who wrote this stuff (seems neat) may be able to uncover my deepest secrets in seconds if they were so inclined. And being geeks, I'm sure they read this. gulp (As far as I can tell, github.com/gchq is from the actual GCHQ.) This is mostly a job ad. Don't go there. It's not moral.
- askl56 10y agoWhat do you mean by it's a job ad?
- johansch 10y agoWhy do you think the GCHQ is publishing stuff that appeals the developers/hackers rather than just being secretive? Of course it's similar to a corporate branding exercise. There's a hard fight for tech talent these days.
- duiker101 10y agoI think johansch means to say this is something someone should have made only to add to his cv or similar(not even fully sure) rather than something that people should use. No one is telling the user what he should use this for, there's plenty of situations where you might want to convert/encrypt/elaborate data without being launch codes for nuclear missiles and this seems like a pretty good tool, all browser based too, opposite of many other more famous tools that require communication with a server.
- throwaway2016a 10y agoI think he is actually saying it is an effort to get people to say "look at the cool stuff we make" and go work for the organization. In this case that organization appears to be the UK equivalent of the CIA/NSA in the US and he clearly feels their mission erodes people's rights.
- johansch 10y agoI guess I should have been more explicit. I am not talking about the actual encryption/decryption/data-wrangling stuff in this HTML page. All of this is obviously very neat and very usable. The reason I do think this is a job ad is the fact that it's the GCHQ that is publishing it. Seriously, a spook agency is publishing neat open source stuff. I can only think of two reasons for this to happen and both align: a) employee happiness (few people enjoy doing stuff in secrecy, I think) b) using the by now well-established mechanics of corporate branding to make the GCHQ appealing to a larger amount of developers/hackers. I think the latter is the dominant factor, and this is why I called this a job ad.
- yarrel 10y agoIt seeming neat is the point. This is propaganda.
- matt4077 10y agoOne could argue (although I'm not 100% sure if I actually believe in it) that making institutions such as GCHQ more attractive would actually help. Their pool of applicants must be starkly different in terms of ideology than other applicant pools (say: google), even though the requirements are similar. If they succeed in broadening their pool of applicants, ideological diversity would increase. That may make it more likely that objections such as yours are raised internally. (counterarguments: their productivity may rise quicker than their morals can, making the net effect negative, or the institution is stronger and changes the individual instead of the other way around)
- johansch 10y agoWell, maybe one take-away from the Snowden movie - in case it's actually accurate - is that by recruiting traditional freedom-loving hackers there will be more potential whistleblowers in the future. Another disparate thought: The NSA we've seen so far appears to have been infinite reach, but with very limited analysis capability. E.g. they have have an army of humans trying to make sense of the mountains of data. Just imagine their capabilities when they have applied (already, perhaps) deep learning to this data feed. This is scary shit. Suddenly they will have a very deep profile on every connected individal on earth (like 75% by now?).
- deleted 10y ago[deleted]
- dimino 10y agoYeah I mean it's totally "propaganda", but so what? Rarely is propaganda actually useful. Are "Swiss" army knives propaganda for the Switzerland military?
- ergot 10y agoWhat does it do? The about link does not gracefully degrade when JavaScript is disabled, which is bad design.
- robin_reala 10y agoWhat sort of things can I do with CyberChef? There are well over 100 operations in CyberChef allowing you to carry simple and complex tasks easily. Here are some examples: Decode a Base64-encoded string Convert a date and time to a different time zone Parse a Teredo IPv6 address Convert data from a hexdump, then decompress Display multiple timestamps as full dates Carry out different operations on data of different types
- mi100hael 10y agoSeeing as it's quite literally a JavaScript application, it doesn't do anything with JavaScript disabled.
- jnbiche 10y agoThis is a web app, not a web page. It's not supposed to anything with JS disabled. It's an actual program that runs locally, without JS no can do. As much of a problem as I have with web pages using gratuitous JS, it should be obvious that actual web applications such as this and gmail will not be able to "gracefully degrade".
- knodi123 10y ago> gmail will not be able to "gracefully degrade". Actually, gmail in particular DOES have a no-js version. Go to "Setting," click on "Help," then enter "Basic HTML view" in the search field, then click on "Standard view and basic HTML view," then "basic HTML view," then, if you wish to preserve the setting, on "set basic HTML as default view."
- jnbiche 10y agoOK, fair enough. But that's a huge effort to duplicate an app like this with a server-side version, and much less user-friendly as well.
- mi100hael 10y agoThough it doesn't say so, at a glance it looks like it's entirely browser-based and doesn't communicate with a server in any way. Pretty handy project. Code looks clean, too.
- Ph0X 10y agoThere's a download button at the top, though it just goes to the htm file, I believe you can just save that and use it fully offline as you mention! Good tool to have saved for sure.
- zitterbewegung 10y agoNeat project and slick interface! Does the gchq use this tool internally? Did you have a use case already in mind for this? This would be pretty useful as a web developer. A good idea would be to add a JSON validator.
- secfirstmd 10y agoYeah I'm not GCHQs biggest fan but got to admit, this tool is a very useful and neat piece of work.
- matt4077 10y agoThe JSON-minify and -beautify steps also do validation (although they seem to just show the error, not allow for a custom workflow)
- tlrobinson 10y agoI'm glad they're releasing this, but it gives me a slightly funny feeling. "Here, have this tool we also use to hack you!"
- beejiu 10y agoMore like "Here, have this tool to distract you from our more powerful tools"
- rkangel 10y agoIt is on Github. Nothing to stop you submitting a pull request!
- ksrm 10y agoI doubt you'd get an answer from them.
- Bartweiss 10y agoThis is an interesting tool, and I'll happily use it for puzzle solving, but I'm concerned that it misrepresents itself in a dangerous way. From the About link: > "CyberChef encourages both technical and non-technical people to explore data formats, encryption and compression." > "It is expected that CyberChef will be useful for cybersecurity and antivirus companies." From the backing Github readme, which as far as I can see is not directly linked on the page: > "Cryptographic operations in CyberChef should not be relied upon to provide security in any situation. No guarantee is offered for their correctness." Now, it's fair to say that professional security types should assume the 'no guarantee' bit. But it's not fair to offer it up as a one-stop-shop for non-programmers to handle encryption tasks, and then offer no caveat at all in the primary reference page. It's even less acceptable when the About page implies the opposite.
- matt4077 10y agoDo you use nginx, chromium, bash, openssl, linux...? Because they all have disclaimers with more or less the same meaning. It's boilerplate to avoid liability, not warnings motivated by known shortcomings.
- Bartweiss 10y agoI'm aware, but I think I was unclear - that's what prompted my comment on professionals knowing this already. My complaint was more that this is another entry in the pattern of handing people black boxes labeled "this does cryptography!", without offering any plain-English explanation of what they're actually getting. It felt particularly important to me here because it's a comparatively new initiative, and the caveat went on the Readme (seen by users who already know) but not the About (targeting users who might not).
- jnbiche 10y ago> "Cryptographic operations in CyberChef should not be relied upon to provide security in any situation. No guarantee is offered for their correctness." Fair point, but I'd imagine that's just something that their legal dept. made them put up.
- 10y ago
- fjarlq 10y agoIt took me a minute to figure out that doubleclicking the actions in the left column is required to add them to the recipe.
- JanSolo 10y agoGlad to see that CyberChef supports Numberwang. There are many nefarious uses that such a complicated numerical system could be put to. I'm happy that our intelligence agencies are on top of this.
- robin_reala 10y agohttps://github.com/gchq/CyberChef/blob/master/src/js/operations/Numberwang.js https://github.com/gchq/CyberChef/blob/master/src/js/operati... // That's a bad miss!
- secfirstmd 10y agoWonder what the meaning of this email in the code is: n1474335@gmail.com
- dagurp 10y ago"Things that aren't Jackie Chan" is missing though
- deleted 10y ago[deleted]
- dangerbird2 10y ago"The contestants today are Julie, from Kent, and Simon, who's also from Manchester"
- Zenst 10y agoIndeed and also an indictment into the age range of those involved in this project perhaps. But good to see such comfy chairs(Python), are still used.
- jnbiche 10y agoAs cool as this looks, not sure how this is any easier to use than a simple Python or Ruby script (or even Bash, if that's more your thing). EDIT: In lieu of downvoting, would someone like to explain their disagreement? I'm curious. Perhaps this would open up certain programming powers up to non-coders, but for anyone who knows how to code, it seems much easier to just write a script to make these kinds of transformations.
- Leftium 10y agoI made a field visit to an MSSP[1] and they used a tool just like this (although not nearly as complete). Most security analysts don't know how to code. Even if they do know how to code, it's faster to take advantage of a nice interface that's already been made. The security analysts need to consider data from thousands of different alerts on a daily basis. There is definitely room for automation, but I think there will always be some need for human judgement and manual analysis (which tools like this will greatly expedite). [1]: https://www.wikiwand.com/en/Managed_security_service https://www.wikiwand.com/en/Managed_security_service
- strictnein 10y agoMaking all of these available and chaining all of these together wouldn't be a simple script. It would be a humongous collection of different scripts.
- jnbiche 10y ago> Making all of these available and chaining all of these together wouldn't be a simple script. All transformations are readily available in the standard library of a language like Python or Ruby. And note that this CyberChef tool doesn't chain them together either. The user does that. Likewise with a Python or Ruby script. I guess I can see how this would be useful if you don't know how to code, but I don't know anyone who would be able to use a tool like this who doesn't know how to code. Also, I can see how this would be useful in the same way that a web app like jsfiddle is useful, to make a quick example to share with others. In any case, I clearly wrong, since I've been so highly downvoted.
- yarrel 10y agoFor those of you who don't know what GCHQ is, it's the UK's NSA with all the problems that entails - https://en.wikipedia.org/wiki/Government_Communications_Headquarters https://en.wikipedia.org/wiki/Government_Communications_Head... "In 2013, GCHQ received considerable media attention when the former National Security Agency contractor Edward Snowden revealed that the agency was in the process of collecting all online and telephone data in the UK via the Tempora programme."
- dimino 10y agoI was a little blown away that it was that GCHQ. That said, how could they possibly collect or intercept this, isn't it a bunch of client side scripts, all hosted on GitHub?
- matt4077 10y agoTheoretically, they could sabotage the crypto algorithms, hope that someone uses it, intercept that communication, and decrypt it using the sneaky weakness they introduced. Or the right circumstances could cause the library to make requests to their secret government hacking command-and-control server. Seeing that they released this at github.com/gchq/..., I'd keep my eyes open for requests to secret-hacked-data-backchannel.open-exploit-project.gchq.co.uk (Or, with less sarcasm: this is probably the project on github with the lowest possibility of containing government backdoors). (or maybe that's just what they want you to believe) (or maybe that's just what /we/ want you to believe) (or maybe that's just what /I/ want you to believe)
- _coldfire 10y agoYou should probably read the manual before using a webapp for your encryption needs. From the Readme: >it should be noted that the analyst is not a professional developer and the code has not been peer-reviewed for compliance with a formal specification >Cryptographic operations in CyberChef should not be relied upon to provide security in any situation. No guarantee is offered for their correctness.
- 10y ago
- painted 10y agohttps://github.com/gchq/CyberChef https://github.com/gchq/CyberChef
- fatdog 10y agoNice wysywyg security tool that will teach people concepts behind the interface. In my day we'd just use perl or python, but this opens up the field to beginners.
- notyourwork 10y agoIt took me a few years in my career to realize the interface usability is more important than the cleanliness of the code. As an engineer I loved my code and treated the interface like a second class citizen. After a bit of experience I realized the interface is what the user judges your code by. First impressions matter and the UI is your code's first impression.
- mmaunder 10y agoThis is actually quite useful if you're doing day-to-day forensic work and are trying to de-obfuscate code or are creating proof of concepts. The interface is really slick and it lets you create an infinite number of recipes/permutations. String processing is much of what we do in security. Yay for GCHQ. You'll find me at the bottom of this page due to an omission of obligatory IC bashing and Snowden fanboyism.
- jxy 10y ago> This is actually quite useful if you're doing day-to-day forensic work and are trying to de-obfuscate code or are creating proof of concepts. Are you serious? Any programming language with an interactive interface would work much better than this kind of web app for any day-to-day work. Of course, this is great for introducing kids to real programming.
- deleted 10y ago[deleted]
- mmaunder 10y agoYup, totally serious.
- NetStrikeForce 10y agoMan, you had a perfectly nice comment and no one would have downvoted you (and probably no one did), but I did just because of this: > You'll find me at the bottom of this page due to an omission of obligatory IC bashing and Snowden fanboyism. There was no need, really.
- thow_me 10y agoShouldn't it be British Army Knife?
- homerguy69 10y agoIs there an accessible REST api? Would be neat.
- donpdonp 10y agoThis would make an intersting server-side service. I was hoping I could POST the json "code" and input, and get an answer in the HTTP body. Sort of a "Lambda 101" project.
- the_duke 10y agoGaffer looks interesting: scalable Graph DB based on Hadoop. https://github.com/gchq/Gaffer https://github.com/gchq/Gaffer The API seems a bit weird though...
- dajohnson89 10y ago>The API seems a bit weird though... Oh my God, you weren't kidding.
- bahjoite 10y agoAh look, it even has snowflakes.
- 45h34jh53k4j 10y agoGCHQ -- NSA without the ethics, answerable only to the King
- lordelph 10y agoThis looks like a handy tool, certainly for puzzles and exploring encodings. It makes decoding puzzles like this very quick! 11100111 10111011 10011101 11100100 10111000 10001101 11100100 10111100 10011010 11100110 10010100 10111110 11100101 10111100 10000011 11100100 10111101 10100000
- colordrops 10y agoThey need a "google translate" operator, and then a text to emoticon operator with a facepalm icon.
- serf 10y agoon the Mandarin step I went to the 'languages' tab looking for something similar to a google translate operator, so hear hear.
- rekshaw 10y agomother f....
- lordelph 10y agoI am so sorry.
- blatant 10y agoNever going to let you down...
- libeclipse 10y agoOh come on..
- rolandog 10y agoI'll have to admit... that was not what I expected.
- KennyCason 10y agoFor all the people who decoded it, only to get another "encoded" message. Well played. :)
- fatdog 10y agoGreat honeypot as well. If a malware analyst dumps one of their intelligence agency canary strings from one of their spyware packages, they can use it to track the discoverer. If I were a spook, I would totally be releasing reversing tools that alerted on my encoded code words.
- zerognowl 10y agoThat's why you fetch the ZIP from Github here: https://github.com/gchq/CyberChef/tree/gh-pages https://github.com/gchq/CyberChef/tree/gh-pages Then you download it, and open it in a sandbox VM with no Internet access
- toomanybeersies 10y agoIf I were a spook doing this, I wouldn't release it on the official GCHQ github organisation.
- vinayan3 10y agoThanks this is awesome. For some of this stuff I usually use the Python REPL. But why go through the hassle when it's all here for stuff like date time conversions etc..
- deleted 10y ago[deleted]
- phaed 10y agoWish it wasn't food themed.
- rmchugh 10y agooh look, the people who spy on the entire Internet are giving us free candy!
- supernumerary 10y agoIncidentally, at least one of the images comes from here: (and they're in violation of the attribution license). https://commons.wikimedia.org/wiki/File:Farm-Fresh_user_cook_male_white.png https://commons.wikimedia.org/wiki/File:Farm-Fresh_user_cook... I wonder if that image has had many visitors ...
- codazoda 10y agoThe graphics alone make me want to punch this tool in the face.
- supernumerary 10y agoA kind of post-modern inversion of this: https://www.youtube.com/watch?v=hn1VxaMEjRU https://www.youtube.com/watch?v=hn1VxaMEjRU Also worth considering: http://www.paglen.com/?l=work&s=symbology http://www.paglen.com/?l=work&s=symbology
- deleted 10y ago[deleted]
- stcredzero 10y agoNow run the entire site through the "cheferizer" and we can have the SwedishCyberChef!
- homakov 10y agoWould be nice to "export as JS"
- _pdp_ 10y agoThis is a very handy tool - very full in terms of features as well. I really like that you can drag and drop components and configure them in order to create a transform. Very nice! Here is my attempt to make something similar although less featureful: https://encoder.secapps.com/ https://encoder.secapps.com/ I will try to incorporate some of these features.
- jimmy171 10y agoI'm trying something very simple and I can't figure out if the flaw is on me or on them. 1. Take a base64 encoded payload as Input: "AAAAI9Dw0qHYq9+61/XPtJS20bTAn+yV5o/hh+jK8J7rh+vLtpbr". I use the "From Base64" module. 2. The result is differential XOR crypt. The seed is 171. I select the XOR module and use 171 as the key. Then i pick "differential" option. Doesn't work. Recipe: [{"op":"From Base64","args":["A-Za-z0-9+/=",false]}, {"op":"Drop bytes","args":["0","4",false]}, {"op":"XOR","args":[{"option":"Hex","string":"AB"},false,true]}] Am I missing something? This is a very simple example. The simple python code that decodes it is this: def decrypt(string): key = 171 result = "" for i in string: a = key ^ ord(i) key = ord(i) result += chr(a) return result string = "AAAAKtDygfiL/5r31e+UtsWg1Iv5nPCR6LfEsNGlwOLYo4HyhueT9tTu36Lfog==" result = decrypt(base64.b64decode(string)[4:]) print "decoded: ", result print "Length: " , struct.unpack("I", string[0:4])
- nthcolumn 10y agoWhy would anyone in the UK need these? They're gloating?
- nthcolumn 10y agoCan't wait for 13 December!
- jitbit 10y agoTrying to figure out the framework its built upon... Looks like vanilla JS. Nice work.