---
type: archive
area: archive
status: archived
date: 2026-05-03
created: 2026-05-03
updated: 1980-01-01
tags:
  - archive
---
## Dos Attacks:
-  Causes:
	- a File or code construct grows too large.
	- a service or connection is overwhelmed with bogus requests.
- Prevention:
	- Use permissions to restrict access to code that consumes vulnerable resources
	- Validate all application inputs.
	- Release ressources in all cases
	- Monitor excessive resource consumption disproportionate to that used to request a service
- Policy FIles:
- is a solution to that by granting access to specific things that jars use.
## Best Practises:
- Enforce encapsulation.
- Make objects immutable.
- mark methods as overridan if you don't want the to ben overriden
- protect byte-code against command line arguments
- Use value guards
## Proctecting sensitive data
- Using message digest class
- ![[img-20240821-180430-bdb3ad4f.png]]
- Using encyption and decryption
- ![[img-20240821-180624-492b451c.png]]
- Using Statement Queries prepared statement to prevent SQL  injections.
- Owasp sanitize and validate every value processed by the browser.
- ![[img-20240821-181340-7192bf45.png]]
- Using a testing always test software.
- 