I am hearing lot of cyberattacks happening daily. how are you keeping your websites safe?

1 points•vikas123456789•about 7 hours ago•4 comments•
I am hearing lot of cyberattacks happening daily. how are you keeping your websites safe?

4 comments

samuelknightabout 4 hours ago
Most hostile traffic will be scanners. No legitimate user will request /.env or random frameworks you don't use so it's easy to automatically detect and block the IP for a week. You should try to put as many active components as possible behind auth where they are required to register with an email, phone, etc. It won't stop an agent but it will filter an attacker not willing to jump through hoops and create more forensic evidence. If you are still worried, put a juicy looking booby-trap route in your code that an agent might pick up by reading javascript bundles. Requesting that route is an IP ban or alert.

Remember that code is cheap now. Have your agents write unit tests on all logic. When it's done move on to property testing. Once property testing is done you can do heavy fuzzing nightly. Then move on to mutation testing. Mutation testing is another form of coverage and your agent will recommend a mix of new coverage and suppression.

A last line of defense are canary tokens (https://canarytokens.org/) on all backend systems and dev machines. This could give you precious time to rotate keys and lock down customer data if someone breaks into your site through the front door or compromises you with a supply chain attack.

Another user mentioned WAF, but they don't hinder offensive agents in my experience. Agents can move like users, and WAFs have to be permissive of user actions. If you have a business behind your website my company builds a self-serve agentic pentesting platform that you might be interested in (see profile).

chris_money202about 7 hours ago
I run on localhost only
toomuchtodoabout 7 hours ago
WAF (when an interface must be public) or moving interfaces to more private links (VPN tunnels, private WAN, MPLS, etc).
Benderabout 6 hours ago
Apply all updates and all hardening in the assorted government guides such as NIST. [1][2] Disable any services not needed. Firewall all inbound and outbound traffic to only permit was is required. seccomp+landlock+namespace everything. Auditd logging of everything. Tamperproof remote logging. File tampering alerts. Use the same tools as attackers are using. Abuse, harden, rinse, repeat.

Many on-site and off-site tested verified backups. Knowledge of at least 9 sea shanties.

Bonus points: Challenge your pen-testing friends to get shell access in exchange for a case of their favorite alcoholic beverage. Add stipulations as this can get very expensive.

Extra bonus points: Download, validate, pen-test all 3rd party CDN resources. Fork to remove bloat and insecure features. Name/URL version after legal reviews and approves, deploy to your own CDN account. Remove all 3rd party dependencies where feasible to do so. Create and validate Subresource Integrity files [3].

[1] - https://ncp.nist.gov/checklist/1072

[2] - https://ncp.nist.gov/repository

[3] - https://developer.mozilla.org/en-US/docs/Web/Security/Defens...

Read the full thread on Hacker News →

Related stories