News for hackers. Stuff that matters.

plasticxme

Re:AR15.com Booted from GoDaddy on Monday January 11, 2021 @10:44PM (#25741992)
These companies all have very clear terms of service, where they reserve the right to remove you for any reason. Using their service is a privilege, not a right.

If everyone is “censoring” you, then there must be a good reason why they prefer to distance themselves.

Of all those listed, you must be an especially toxic brand to be kicked from GoDaddy.

Twitter is a private sector business in the US with terms that include reserving the right to remove any content for any reason. They have every right to.

If you don’t agree with it, for moral reasons or otherwise, you’re free to provide your own service.

Re:Dockerfile Best Practices on Sunday January 03, 2021 @07:34PM (#25626716)
CAP_NET_BIND_SERVICE is a root privilege, a distinct one provided by kernel capabilities, granted to a process. In order to use it the container must be permitted to allow its processes to elevate their privileges.

If the container is running as root permitting it is redundant, since the kernel doesn’t filter root for kernel capabilities anyways.

If a privileged user sets CAP_NET_BIND_SERVICE on an executable binary using setpcap to allow a non-root user the ability in a container to bind to a privileged port, elevated privileges are still required for execve to create a process that is permitted to use the kernel capability. Think sudo but for processes.

The argument with containers is that binding to a privileged port isn’t necessary, so you shouldn’t do it. And by not doing it you improve your security posture.

Re:Dockerfile Best Practices on Sunday January 03, 2021 @11:02AM (#25622491)
Nginx and the like are starting to provide non-privileged versions of their container images.

Running as root is lazy and equals container escape, especially when running on anything other than scratch and read only file system.

The only reason Nginx and Traefik run as root is to bind to privileged ports (80,443). There is no reason to do that inside of a container, since you can remap exposed ports outside of the container.

Containers are not VMs and must be handled differently. You are always one RCE away from having your entire container platform compromised.

Re:Dockerfile Best Practices on Sunday January 03, 2021 @10:32AM (#25622296)
They were not more secure, just more isolated. The challenges are different.

Containers are just namespaced processes that share the same kernel as the host. A host has access to all container processes, uids, gids, file systems, and networks. Cgroups are used to limit resource access.

To run containers securely you need to understand how to protect running processes. You need to use unprivileged users where possible, drop all kernel capabilities not required, run Linux Security Modules (AppArmor, SELinux) to prevent processes from doing things they shouldn’t; and, run containers based on the smallest image possible, since a container should only have files that are absolutely required to run a process, and nothing more.

Even when you do it all right, in a multi tenant environment, it’s not safe to run all containers on the same hosts.

Re:Create Terraform files using Python scripts on Saturday January 02, 2021 @10:15PM (#25619037)
Infrastructure should be defined in an easily digestible, human-readable format.

Your manifests serve two purposes: define infrastructure and self document.

While you can achieve the same infrastructure automation with shell scripts, they’re rarely written well enough to easily understand, introducing operational risk when handed off to other people or teams.

Re:A brief history of Elasticsearch (2014) on Sunday December 27, 2020 @09:15PM (#25556093)
The reason is because object storage is slow and not meant for high performance, which is usually important for large databases.

For your S3 example and ignoring IOPS, you are comparing 13ms of latency on local spinning disk versus 10s-100s of ms latency from S3. SSD is faster with only 1ms of latency or less on average.

Adding IOPS to the equation, you’re likely going to slam your object store if you have a high volume of traffic, where your block storage likely wouldn’t even break a sweat.

Re:51% of 4M Docker images have critical vulnerabilities on Thursday December 17, 2020 @07:58AM (#25455145)
A container is not a VM and should ONLY contain the exact files needed to run your app to run securely. Any additional packages increase the security footprint.

Every container is one RCE vulnerability away from being compromised and escaped. if your images are distribution based, even slim ones, you’re giving the attacker a broad set of tooling out of the box.

Container runtime defaults in Docker and Kubernetes are insecure and grant attackers a lot of privilege — running as UID 0, no user namespace separation, and potentially dangerous kernel capabilities added to the container’s parent process.

No, there is no reason for them to do that. Microsoft has proven otherwise over their entire existence.
Re:Why Python is Slow: Looking Under the Hood (2014) on Wednesday October 25, 2017 @07:43AM (#15549239)
If you read the post, you’d know that you’ve basically summarized it.
As a whole, we vote for a party. The person on the ballet is that of your riding. They are a Member of Parliament (MP) for your area, and they are affiliated with one of the many parties.

The party the receives the most elected MP's across Canada wins, and their leader becomes the Prime Minister. The party votes for their leader, so Canadiens have little say there.

Sadly, most people vote based on who they want as prime minister, and they put little thought who is running their riding.

Re:The Age of the Never-Ending Performance Review on Tuesday August 23, 2016 @10:30AM (#12343983)
Requiring access to your social accounts is laughable. Unless it's directly tied to your job, it's a signal to quickly and politely end the relationship.
Re:Every top 5 song from 1958 to 2016 on Friday May 06, 2016 @09:08AM (#11643667)
It use to be tracked by radio song requests and sales of singles.
I envision a future where CEOs don Guy Fawkes masks before doing press releases.
Re:Creating a Document-Store Hybrid in Postgres 9.5 on Friday February 05, 2016 @05:22PM (#11045099)
Mongodb easy; PostreSQL hard. The latter requires extensive planning, which slows you down when features need to go out now.
Re:Google Will Soon Shame All Websites That Are Unencrypted on Wednesday January 27, 2016 @05:51PM (#10984220)
Deploying TLS in simple environments isn't overly complicated. It's just cost prohibitive.
Re:Google Will Soon Shame All Websites That Are Unencrypted on Wednesday January 27, 2016 @05:40PM (#10984143)
This is an awkward argument. One of my sites documents how to configure servers, for example. What excuse is there that something like that needs to be encrypted?

The most legitimate reason I've heard is for privacy. I don't believe the gov't is going to lock someone up for learning how to serve web pages.

Re:Edward Snowden's OS of choice gets a major update on Wednesday January 27, 2016 @01:27PM (#10981857)
Tin foil hats a side, I assume it would be an account used only for professional reasons, allowing students to reach out to their teachers.

However, if the teacher is incapable of separating personal life from work, there could be repercussions.

Re:Stress-testing airplane wings on Monday January 25, 2016 @06:21PM (#10970780)
This isn't software development. Why reinvent the wheel?
Re:AWS Certificate Manager: Deploy SSL/TLS-Based Apps on AWS on Monday January 25, 2016 @08:27AM (#10967018)
Some forms of compliance require end-to-end encryption for certain transmissions. PCI is one that comes to mind.
Re:Posting successful SSH logins to Slack on Friday January 22, 2016 @02:57PM (#10955166)
Slack is terrible for auditing, though. What's wrong with email?
Re:What I learnt from being sexually harassed at Google on Tuesday January 19, 2016 @08:41AM (#10930626)
What!? First, it is highly inappropriate for anyone in any leadership or management position to ask anyone to sit on there lap, no matter what their relationship status.

Secondly, making any kind of sexual proposition or advance in the office on someone you are not in a relationship with is sexual harassment.

If you are in a relationship, it's inappropriate and a conflict of interest.