Lurker News

Comments (142) 16 threads

Earlier comments
20after46 replies#
Am I the only one that thinks Math.random should be fixed instead of the hundreds of apps that used it wrong? Why shouldn't we make all random number generators at least somewhat secure?
20after4#
If the API is incompatible with security, shouldn't it be deprecated and made very noisy in the logs?
senderista#
Both PRNGs and hash functions should be secure by default.
grg0#
I think this is a more general question because C's rand() also comes to mind as sucking very hard. There are, across languages and OSes, very bad decisions from the past that we keep dragging on.

I just see this as a natural development of things. Companies have prioritized shipping shit fast. The security industry is snake oil on top of bad software (sorry, guys), and the software industry is even a larger joke. Now we are seeing the consequences. The only way forward is to increase spend on real security and to slow the fuck down.

teravor#
the objection is something along the lines of how the people who depend on it assume high performance and if every PRNG was made into a CSPRNG there would be performance regressions or something.

frankly, it should be made their problem and if the performance isn't good enough for them they should migrate to custom insecure PRNGs themselves.

ifwinterco#
Maybe but then it would end up being secure only on newer environments (new browsers for client side code, which is something you don’t control), while the same code would be insecure when run on an older environment.

That also isn’t ideal

Panino#
This is what OpenBSD did many years ago with rand(3). Quoting the manpage:

Standards insist that this interface return deterministic results. Unsafe usage is very common, so OpenBSD changed the subsystem to return non-deterministic results by default.
In OpenBSD the seed variable is ignored, and strong random number results will be provided from arc4random(3).
...
If the standardized behavior is required srand_deterministic() can be substituted for srand(), then subsequent rand() calls will return results using the deterministic algorithm.
https://man.openbsd.org/rand
So if you need pretend random numbers, you can still get them. But the preferred choice is to use the arc4random family of functions.

j453 replies#
Router and firewall companies appear be targeted.

What are people doing to stay ahead of these companys, products that are pfsense based or something else?

j451 reply#
Absolutely, and learning about the emerging approaches folks are taking in an environment where few if any vendors can provide the security they did, is precisely the question I was asking to begin with.
happyopossum#
The point is that vendors never provided absolute security. This also isn't a failure of a network security product - it's their management server, which has no reason to be sitting wide open on the internet.

Follow established security practices, audit them, re-evaluate your procedures constantly, and basically do the job of a proper cybersecurity team.

ba1afd89f34cb232 replies#
I'm not being snarky, but if you have to ask, you probably aren't qualified to run it securely. You can run it, but it'll be vulnerable because you'll not implement some best practices that'll bite you.

Anyway, it's quite rare that control or management plane attacks can be carried out just via the data plane. Meaning, it's rare you can get onto a security appliance by passing traffic through it. Routing a packet a through a router shouldn't let you exploit a vulnerability on the router itself. Therefore, the best defense is to make sure the management planes of the routers and firewalls are not Internet accessible, and that the control planes are as locked down as possible (difficult with devices that terminate VPN tunnels from dynamic sources, and to some degree with WAN BGP peering).
A Check Point security server probably shouldn't have its login page available on the Internet, though I haven't worked with that platform much. I guess if you want dynamic endpoints, like branch offices, to connect to it for management that could make sense, but I find that icky and would strongly prefer some sort of overlay network solution managed in-house or managed by some service provider to lock that down a lot rather than just make the box public.

j452 replies#
Seeing the qualified people being hit with it whether they're qualified or not, is usually the people I help.

I often help figuring things out beyond assumptions like that when all the preventative best practices and vendors fail.
One reality is too many enterprise companies can't respond quickly enough to most of this, let alone their vendors.. let alone either suitably understand the cutting edge of AI threat vectors as they change weekly, let alone protect users.
There's also everyone that's not an enterprise customer also just as exposed to all of this.
I mentioned something pfsense (Netgate) based. That might handle some of it, for some use cases.
One thing about reading your approach is how common it is, or isn't. You can imagine businesses that primarily use the cloud, or increasingly having some on-prem again.
I doubt doubt a checkpoint server has it's login page available on the internet, but it won't be a surprise if it ends up being accessed indirectly and available from the site. The issue is any device with a web page is potentially compromiseable.
If we think about edge switches like brocade, you can have all the web based bells and whistles, or manage it more securely over a managed link cable.
Cybersecurity has gone the way increasingly of convenience (web based), while I'm not against that, there's a lot bigger and many more layers or attack surfaces as some of these hacks are seeing.
I agree nothing really should need to serve the internet directly at all, and that in-house overlay, or dedicated service provider can be one thing.
If you think about edge switches for a moment, it can

ba1afd89f34cb23#
Here’s a random link that explains control vs data vs mgmt plane on a network device: https://codilime.com/blog/management-plane-vs-control-plane-...

They have nothing to do with console port vs web interface. The management interface simply shouldn’t be accessible to attackers at all unless they’ve already deeply penetrated the network. You want devices with a dedicated management interface and disable all in-band (ie, via the data plane) management.

protocolture#
>One reality is too many enterprise companies can't respond quickly enough to most of this

My issue in all this is that Ubuntu maintains way too many different kernels and are really slow to fix the less interesting ones. Enterprise can move as swiftly as they like. This is what emergency changes are for under ITIL.
>when all the preventative best practices and vendors fail.
Multiple overlapping security controls are best practice. And very very very unlikely to fail. The number of people implementing best practice security is very very small. Rather than pretending it doesnt exist, or doesnt work, you should be pushing people towards best practices.
>The issue is any device with a web page is potentially compromiseable.
Any device with an open port can be compromised. Heck, sometimes it doesn't need that. Which is why you don't rely on a single control. Device uses web management. Whitelist the address space that can manage it. Not just on that device at the control plane, but at the firewall too. Filter against a management VPN. Logs from Firewall, Web interface and VPN should be ingested by SIEM. Critical events should trigger alerts. SOC response determines what to do, whether temporary or just more controls are required. etc. etc. etc.
>If we think about edge switches like brocade, you can have all the web-based bells and whistles or manage it more securely over a managed link cable.
Disabling the web interface on a switch to reduce attack surface is like 1 of 2000 things you should be doing but yes.
>Cybersecurity has gone the way increasingly of convenience (web based)
What is this based on? Like you want your SIEM to be accessible to noc/soc users, but you are still ingesting like 99% syslog. And your SIEM will almost never be in the attack path.
Not to mention that convenience is a huge leg of cybersecurity. Making MFA convenient, making monthly password resets redundant, leaves more users likely to memorise instead of writing down passwords. Convenience is underrated.

pixl97#
>the best defense is to make sure the management planes of the routers and firewalls are not Internet accessible

In a low to zero trust world they should be isolated from your internal network too. We have seen a pile of different IOT devices perform network scans in the past few years. The inside shouldn't be considered safe either.

oldsj#
I don’t really trust opn/ pfsense much more either plus it’s kind of clunky to work with in the age of agents. I recently moved to a nixos based router + firewall so now all config and package dependencies are based in git and I can use Renovate to keep everything up to date, with cooldowns for some additional supply chain safety. Router changes and updates can then be tested and validated in CI like anything else

Load more comments