Skip to main content

CyberSecurity

Cybersecurity is interesting as for the "defender", you need to think about everything and for the "attacker", you only need to be right once. As a maker of apps with responsibility for cybersecurity, there a a couple of things that you can do to make the app or service a lot more secure. An attacker will go for the easy pickings.

How to Think Like a Pentester

Penetration testing is essentially simulating attacks and investigating the consequences of said attacks. The end goal is not to get hacked.

Two types or modes of pen testing.

  • Black box. A hired penetration tester acts like an attacker without "internal" knowledge.
  • White box. Hired penetration tester "cheats" and has access to all info. It saves time, improves coverage, easier to advise on fixes and improvements. Assuming zero trust principles, it is important to check penetration vulnerabilities based on the attacker having access to code repos, processes, etc. Differences between attackers and pen testers are that pen testers have scopes and are ethical, real attackers go after whatever is easiest. An issue with pen-testing is that attackers have technically unlimited time, therefore white box access can be a supplement to an internal pentester that might not have the resources of an attacker.

The ideal scenario for an attacker is to gain access, that might be either an account or some sort of way of executing code on your application. Another goal is to gain persistence, where the attacker has access over time, for example, if a container or app is redeployed.

Executing attacks:

  • Burp - Inspect HTTP traffic and find request headers, query parameters, etc.
  • Metasploit
  • Custom exploits

Questions Pen Testers ask themselves

  • Which technologies are in use?
  • Are there existing vulnerabilities? Are they patched?
  • How can one interact with the system without authentication?
  • How do legitimate users authenticate to the system?
  • For ML, data leaks are the biggest issue.

Links

Thoughts

  • Just don't post any secrets to Git Hub.
  • Again, keep them secrets out.
  • The best programming practice is cyber-security best practice.
  • A lot of the attackers used to be bored kids; now, it is still bored kids but also government actors.