Better HN
topnewbestaskshowjobs
Log inSign up

hyper_reality

1,239 karma · joined May 3, 2017 (9y ago) · 137 submissions

Co-founder of CryptoHack.org

[ my public key: https://keybase.io/hyperreality; my proof: https://keybase.io/hyperreality/sigs/UP-XDCQUL1Z4L1T9KfF14x0Jpy_WxPs5UEyAPkIKPRs ]

Submissions

comment 5y ago · link · parent

This is funny and I would love to hear your personifications of other languages. I imagine Python and Perl offer a lot of material.

comment 5y ago · link · parent

Great and clear guide to this thorny topic. However, even this article gets a little confused in its wording at one point:

> In such cases, we want our API to set the Access-Control-Allow-Origin header to our website’s URL. That will make sure browsers never send requests to our API from other pages.

> If users or other websites try to cram data in our analytics API, the Access-Control-Allow-Origin headers set on the resources of our API won’t let the request to go through.

The ACAO header only performs a controlled relaxation of cross-origin restrictions. It is the browser that is ensuring that by default other pages can't send requests to the API. Just a nitpick as I feel the rest of the article illustrates this well.

comment 5y ago · link · parent

Reminds me of this from last week: https://catinthehatattack.com/

comment 5y ago · link · parent

True, but less than half of world countries are covered by street view and it's possible for a human to learn the distinctive metadata features of every single one, together with all the common roadside features like poles, road markings, and vegetation. So I don't know if the level of granularity where statistical variations are noticed is required to succeed at least in determining the country.

But in terms of picking the closest point within a country, perhaps with a large enough dataset the AI would be able to distinguish based on local weather conditions when the Google car was driving through certain regions. And this would trump the player's ability to read place names and signage.

comment 5y ago · link · parent

Interesting post, but I disagree with the conclusion that with a bit of work AI could take down the best Geoguessrs. The best players already take into account all the metadata like camera quality and distinctive features of the Google car. Furthermore, they would surely have an edge in urban locations where proximate locations are visible in street-signs. I could be proven wrong though, and it would be super interesting to reverse engineer AI guesses that turn out to be surprisingly correct based off little info.

To see just how good the top players are at instantly recognising a country using these clues, then check out https://www.youtube.com/watch?v=zEmoAYpTJuA . Or maybe don't if you don't want the game spoiled!

comment 5y ago · link · parent

This is being discussed in CryptoHack Discord. We are struggling to understand the paper, it is written in a very dense style and the difficulty is compounded by the fact that lattice problems can be a challenging topic even for cryptographers.

Either way, we think that the title "this destroys the RSA cryptosystem" is sensationalistic and probably incorrect. It is presumably based on the fact that the paper claims to reduce some forms of integer factorisation to a lattice problem which can be solved in polynomial time. However, whether this technique applies in the general case to RSA moduli is not argued here and the claim seems to be premature.

37.

Debian Discusses Vendoring–Again(lwn.net ↗)

3 points · by hyper_reality · 5y ago · discuss

comment 5y ago · link · parent

https://projectbullrun.org/dual-ec/ext-rand.html contains more information about the TLS Extended Random proposal and how it relates to the backdoored Dual EC DRBG.

Also Eric Rescorla, the other author of the Extended Random draft, is now the CTO of Firefox? He's one of the foremost experts on TLS, it'd be interesting to examine his role in this.

comment 5y ago · link · parent

The best I could find is the "false-signaling theory of hypocrisy": social psychology research which demonstrates that "people judge hypocrites negatively-even more negatively than people who directly make false statements about their morality" [1]

[1] https://pubmed.ncbi.nlm.nih.gov/28107103/

comment 5y ago · link · parent

"Just fork" underestimates the huge amount of effort it requires to develop a modern browser that stays up to date with the latest web standards. There's a reason why even Microsoft's browser now is based on Chromium.

comment 5y ago · link · parent

I think the article somewhat misconstrues the reasons why maintainers are thinking of dropping support for packaging Chromium. Maintaining the Chromium package is an unusually laborious task, with a lot of releases, and huge compile times. It's simply a gigantic codebase with the order of millions of lines of code, and there are only a couple of people (at best) in each distro dedicating time to keep track of the latest changes. The Chromium in Debian has been developing a growing list of security issues as it falls behind the latest versions https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=972134

Google's forced removal of features from Chromium may just be the straw that broke the camel's back. I see other comments on HN and LWN question the maintainers' judgement, without realising how many resources it takes to package Chromium for distros.

comment 5y ago · link · parent

Great writeup on how to do a black box "cold-boot stepping attack" (https://www.usenix.org/system/files/conference/woot17/woot17...) on an encrypted HDD. This is why the recommendation is to use encrypted filesystems rather than relying on the obscure hardware device to do FDE securely. Which might seem obvious to most readers here, but I guess that self-encrypting hard disks are highly marketable.

comment 5y ago · link · parent

Return Oriented Programming (ROP) can bypass the non-executable stack protection, since existing "gadgets" from program memory are executed rather than attacker-provided shellcode.

However the stack protection will probably require a separate information leak (to find the canary value) or arbitrary write (to overwrite it) to bypass. Unless the attacker is fortunate to find an unprotected function which the compiler missed, or a value that can be overwritten which changes the control flow and isn't protected by the canary.

ASLR is also a decent mitigation against ROP, and requires an information leak so the exploit code can calculate the memory offset to find the library gadgets.

In short, ROP isn't the solution to all the mitigations the parent posted; in fact ASLR is designed to make ROP harder to exploit.

comment 5y ago · link · parent

Paged Out is great, Rafale appears to be offline though (and French only).

comment 5y ago · link · parent

What a classic! Phrack stopped publishing some time ago but the world of security ploughs on, who can recommend similar modern resources to Phrack?

Here's a few I'm aware of:

https://www.alchemistowl.org/pocorgtfo/

https://secret.club/

comment 5y ago · link · parent

That was a typo, I fixed it, thank you.

comment 5y ago · link · parent

The article notes that in South Korea, "from next year, cash bonuses of 2m won (£1,320) will be paid to every couple expecting a child, on top of existing child benefit payments".

These cash awards for having children being paid by developed countries are laughably far too little, too late in their intention. Looking at the issue in financial terms, having a child and bringing them up well is an enormous cost both in money and time. The most significant being the opportunity cost of at least one parent's ability to participate economically being severely reduced for years. Brian Tomasik estimated that having a child may cost over $300k when measured in those terms, although there is some USA slant in his analysis (https://reducing-suffering.org/the-cost-of-kids/).

Now, Tomasik does mention that having children cannot be judged economically, it's a special and important experience that you can't place a price on. On the other hand, there's no denying that raising a child in today's world is simply unthinkable for many young adults who are struggling with insecurity in housing, careers, and a bleaker outlook on the future. Many commodities are historically cheap today but property is extremely less affordable, and most prospective parents would rather delay having children until they can achieve career stability and afford a reasonably-sized house, which is happening very late in life (if at all) compared to previous generations.

If governments were really serious about reversing the decline in birth rates, they should be looking at pursuing better policies for ensuring more people can afford a home, or providing free childcare at scale - tackling the underlying societal reasons why this trend is occurring rather than adding a hopelessly insufficient cash bandaid. Furthermore, a cash bonus creates a perverse incentive where some people may grab the short term reward without necessarily considering the long term sacrifice involved in having kids.

comment 5y ago · link · parent

This was very nicely expressed, I would read a book in this style!

By the way, I'm not sure the hnchat.com service linked in your profile works any more?

49.

Ask HN: What are the fundamental “must read” papers on software security

6 points · by hyper_reality · 5y ago · 3 comments

comment 5y ago · link · parent

How do you know these aren't honeypots?

comment 5y ago · link · parent

This is impressive work.

First it shows how the top CTFs can showcase the state of the art in terms of exploitation. It's hard for anyone to argue that the CTF scene does not reflect the "real world" when it is producing solid work like unpublished virtual machine escapes. And even better, the work is shared in high quality writeups.

Secondly, this plus other vulnerabilities found in VirtualBox emphasises that off-the-shelf hypervisors cannot be considered to create a security boundary. Every serious nationstate possess weaponised exploits to break out of VirtualBox, VMware etc. KVM and Xen have a smaller attack surface and are known to have a better isolation model, but I'm sure there are still plenty of exploits given enough resources. Perhaps this is obvious to some, but some people really do think that VirtualBox VMs act like a sandbox, which is only true if your adversary is rather unsophisticated.

For a writeup from the same CTF, but focussing on networking and cryptography instead involving an exploit in a Chinese anti-censorship proxy tunnel, please see https://blog.cryptohack.org/cracking-chinese-proxy-realworld...

52.

A Swiss parliamentary investigation into the Crypto AG case(electrospaces.net ↗)

3 points · by hyper_reality · 5y ago · discuss

comment 5y ago · link · parent

I've seen the opposite. Many of the very best security researchers are also top performers in CTFs (to give one example, Orange Tsai). It's hard for me to see how your correlation works unless "cybersecurity industry" is defined extremely narrowly.

comment 6y ago · link · parent

I'm fed up of people repeating this over-simplified putdown of WHO on HN.

The advice about masks was on their website on March 2020 largely because they were worried about mass public buying of masks, leaving a shortage for frontline medical workers (https://www.reuters.com/article/us-health-coronavirus-who/ma...).

The guidance was updated as more evidence came in and production of masks scaled up. This should not be compared to outright quackery.

comment 6y ago · link · parent

This is in response to the issue last week where slowness of Apple's OCSP responders caused hangs in apps launching. It was a bad look for privacy-conscious Apple especially considering that basic OCSP queries are unencrypted HTTP requests.

In my post (https://blog.cryptohack.org/macos-ocsp-disaster) I argued that OCSP was inherently a poor way to perform certificate revocation in this scenario, and that an approach based on Certificate Revocation Lists (CRLs) could be preferable. Regardless, it looks like Apple might be doubling down on OCSP but encrypting the requests, or possibly adding a new protocol altogether.

comment 6y ago · link · parent

Agreed, and furthermore the article calls the privacy arguments "far-fetched" and "dogwhistles", while only tackling a strawman version of the other side's view. The article doesn't for instance investigate the fact that the OCSP requests go over port 80 (i.e. unencrypted HTTP), or discuss the reliability issues that come into play when everyone's computers depend on a single service to have 100% uptime.

Finally, I think the writer should be more careful with their use of the term "dogwhistle". It's a politically-loaded term that isn't used correctly in this piece.

comment 6y ago · link · parent

Nice list, here are suggestions for improving a few of the commands:

  Generate Random Passwords
  >_ < /dev/urandom  tr -dc _A-Z-a-z-0-9 | head -c6
This produces a 6-character password which only has 35 bits of entropy. It also doesn't print a newline, causing the password to be on the same line as the next prompt. Better to use something like:

  >_ < /dev/urandom  tr -dc _A-Z-a-z-0-9 | head -c12 && echo
Or the "pwgen" utility which can do this for you.

  Find the process that is using a certain port e.g. port 3000
  >_  lsof -P | grep ':30000'
This command will be extremely slow on large systems with a lot of open files. It is essentially listing every open file (the -P flag just inhibits port mappings from e.g. "port 22" to "SSH") and then grepping the output. Much better to run:

  >_  lsof -i :30000
Which is not only shorter, but much faster as it directly gets info about that port.

  Add your public SSH key to a server in one command
  >_  cat .ssh/id_rsa.pub | ssh hostname 'cat >> .ssh/authorized_keys'
This is what the "ssh-copy-id" utility, which is part of the openssh-client package, does already.

  Harder, Faster, Stronger SSH clients
  >_  ssh -4 -C -c blowfish-cbc
All three of those points are debatable with that command. Just use the defaults.

comment 6y ago · link · parent

I don't think you can dismiss the beef/submarine by-products argument without further analysis.

If the beef by-products are being sold by cow farmers for a profit, that makes slaughtering a cow more profitable for farmers. It could mean that more cows are farmed, the price of beef goes down, and therefore the demand goes up. It's only if beef by-products are relatively worthless that your argument is justified, and from a quick search that doesn't seem to be true at all - byproducts are worth 10-15% of the carcass [1].

Similarly, if commissioning new nuclear submarines is cheaper because the SMR research has already been done, then defence procurers can make a stronger case to buy more of them as opposed to other military technologies.

[1] https://www.farmprogress.com/story-beef-byproducts-buoy-catt...

comment 6y ago · link · parent

Similar opinions are expressed by a number of Green political groups around the world, and I've also struggled to reconcile their commitment to slowing global climate change with their rejection of nuclear power.

Ignoring the typical arguments against nuclear, I think a main point from them specifically is that investment in energy is zero-sum, and state resources directed towards nuclear energy are resources not going towards renewable energies. Furthermore, heating and transport make up a large proportion of carbon emissions, and these generally aren't powered by nuclear energy. So nuclear places the focus of energy transformation in the wrong place, and allows governments to believe they are solving the problem when much larger investment in renewables is required.

I'm not qualified enough in the area to agree or disagree with the implicit tradeoffs there, it's just the argument I've heard.

comment 6y ago · link · parent

The extent of Stasi surveillance and repression was profound and explains why Germans take privacy more seriously than other Western democracies.

It's scary to imagine what the Stasi would have been able to accomplish with today's surveillance technology. The article shows how their bugging was limiting by budget and by the human resources required to covertly insert recording devices. Since then, every aspect of surveillance has become easier, stealthier, and cheaper to deploy at scale. End-to-end encryption has been the main countermeasure, but can be worked around, since the metadata of a conversation tends to be more significant than the contents.

12345