Better HN
topnewbestaskshowjobs
Log inSign up

fhenneke

40 karma · joined Mar 8, 2017 (9y ago) · 25 submissions

Submissions

1.

Fuzzing JavaScript with open-source tools (live)(youtube.com ↗)

2 points · by fhenneke · 4y ago · discuss

2.

Fuzzing JavaScript with open-source tools (live stream)(code-intelligence.com ↗)

3 points · by fhenneke · 4y ago · discuss

3.

Autofuzz – Fuzzing Java Without Writing Fuzz Targets(fuzz.ci ↗)

3 points · by fhenneke · 5y ago · 1 comment

comment 5y ago · link · parent

While I agree with most of what you are saying (let's hope that 2021 will finally be "the year of memory-safe languages"), remote code execution issues also affect Java. https://securitylab.github.com/research/securing-the-fight-a... is just one of the latest prominent examples.

comment 5y ago · link · parent

With minor changes to the default exclude list for coverage instrumentation, you can use Jazzer to fuzz the Java standard library (at least the parts that are implemented in Java).

comment 5y ago · link · parent

That depends on the language you want to fuzz. A good general introduction and hands-on "course" for C/C++ is https://github.com/Dor1s/libfuzzer-workshop. If you prefer Java and just want to get a feeling for how concrete fuzz targets can look like, take a look at the Jazzer examples at https://github.com/CodeIntelligenceTesting/jazzer/tree/main/....

comment 5y ago · link · parent

One of the authors of Jazzer here. Feel free to ask any questions regarding Jazzer (https://github.com/CodeIntelligenceTesting/jazzer) or how to integrate Java/JVM projects into OSS-Fuzz.

8.

Show HN: Chrome 89 Android Autofill improvements(github.com ↗)

3 points · by fhenneke · 5y ago · discuss

9.

How to instrument JVM bytecode for fuzzing (open-source)(blog.code-intelligence.com ↗)

14 points · by fhenneke · 5y ago · 1 comment

comment 5y ago · link · parent

The FuzzedDataProvider (docs at https://codeintelligencetesting.github.io/jazzer-api/com/cod...) offers many of the functions you would need to write such a generator. If there is something missing that could be generally useful, we can always add it.

comment 5y ago · link · parent

Thanks for the link, I wasn't aware of this new feature!

Our coverage instrumentation does not rely on JNI calls, only the libFuzzer callbacks do, so the overhead shouldn't be too substantial. It's certainly not a proper benchmark, but one core on my laptop can fuzz the more non-trivial examples at around 10,000 exec/s. We are also working on some further performance improvements.

comment 5y ago · link · parent

If you want to fuzz a Java web app, our commercial platform CI Fuzz (of which Jazzer is one part) has built-in detectors for the typical vulnerabilities such as SQL injections: https://blog.code-intelligence.com/sql-fuzzing

comment 5y ago · link · parent

Good catch, thanks ;-) I will update the post.

comment 5y ago · link · parent

By default, uncaught exceptions and memory issues in JNI libraries are reported as "crashes".

Additionally, Jazzer provides a hooking framework that can be used to implement domain-specific sanitizers for logic bugs. See https://blog.code-intelligence.com/engineering-jazzer#user-c... for an example. Part of the reason for open-sourcing Jazzer has been to get the discussion started on what kind of "sanitizers" are needed to unlock the full potential of Java fuzzing.

comment 5y ago · link · parent

I'm one of the engineers behind Jazzer and happy to answer any questions about it.

We also have a blogpost that talks about the most interesting technical aspects of Jazzer: https://blog.code-intelligence.com/engineering-jazzer

comment 5y ago · link · parent

Yes, that is exactly how it works, there is nothing that would require source code access.

If you have a Java app packaged as app.jar, all you need to do is write a fuzz target (with the fuzzerTestOneInput function) and package it into e.g. target.jar. Then you can run jazzer with

  --cp=app.jar:target.jar --target_class=fuzz.target.Class

comment 5y ago · link · parent

I'm one of the engineers behind Jazzer and happy to answer any questions about it.

We also have a blogpost that talks about the most interesting technical aspects of Jazzer: https://blog.code-intelligence.com/engineering-jazzer

comment 6y ago · link · parent

The tokens are engineered to protect the private key material stored inside them very well, so you can be quite certain that nobody will ever be able to log in without physical access to the key (to touch/press the button).

However, the SSH protocol differs quite substantially from the FIDO2/WebAuthn spec in how it uses the PIN set on the token. Depending on how the SSH server is configured and which defaults your security token's manufacturer chose, it may be the case that the PIN is not needed to log in (assuming physical access to the token).

I hope that all of this will be clarified in the OpenSSH documentation at some point as it is quite vague about security guarantees at the moment. It's probably best to use the non-resident version of the new key type together with a passphrase on the key file for now, or rely on the PIV applet instead.

comment 6y ago · link · parent

You can set a FIDO2 PIN on your security key and it will prevent ssh-keygen/ssh-add from regenerating the key files without it. But the relevant information (the key handle) can also be retrieved from the key in other ways that don't require the PIN. This is likely going to be fixed in a future version of OpenSSH, but may require a more recent kind of FIDO2 key. Until then, you should consider resident OpenSSH keys to provide only single-factor authentication ("possession"), even if a PIN is set on the security key.

comment 6y ago · link · parent

The new OpenSSH keys are very convenient if used correctly, but have a crucial disadvantage compared to the PIV-based approach of yubikey-agent: They currently can't be protected effectively with a PIN, so you should take good care of your security key or require multiple authentication methods on your server.

21.

What’s New in YubiKey Firmware 5.2.3(yubico.com ↗)

2 points · by fhenneke · 7y ago · 1 comment

22.

Show HN: Self-decrypting HTML files with WebCrypto(github.com ↗)

1 points · by fhenneke · 7y ago · discuss

comment 8y ago · link · parent

You can use Secure Shell for SSH with your Yubikey in the meantime: https://chromium.googlesource.com/apps/libapps/+/HEAD/nassh/...

comment 8y ago · link · parent

A Bloom filter with >500M items, even when allowing for a comparatively high rate of false positives such as 1 in 100, is still in the hundreds of MBs, which would not be that much more accessible than the actual dump files.