const scan = await audit(target, {
scope: 'authorised',
checks: ['tls', 'headers', 'auth'],
});
if (scan.findings.high > 0) {
notify(team.security, scan.report);
}
await harden(server, baseline.cis);
log.info('perimeter verified');
function verifyToken(jwt) {
const claims = decode(jwt);
assert(claims.exp > now());
return hmac.verify(jwt, KEY);
}
const scan = await audit(target, {
scope: 'authorised',
checks: ['tls', 'headers', 'auth'],
});
if (scan.findings.high > 0) {
notify(team.security, scan.report);
}
await harden(server, baseline.cis);
log.info('perimeter verified');
function verifyToken(jwt) {
const claims = decode(jwt);
assert(claims.exp > now());
return hmac.verify(jwt, KEY);
}
SELECT id, status, risk_score
FROM assets
WHERE exposed = true
ORDER BY risk_score DESC;
$ nmap -sV --top-ports 100 10.0.4.0/24
PORT STATE SERVICE
22/tcp open ssh
443/tcp open https
firewall.allow(443).deny('*');
waf.rule('rate-limit', 120 / 60s);
SELECT id, status, risk_score
FROM assets
WHERE exposed = true
ORDER BY risk_score DESC;
$ nmap -sV --top-ports 100 10.0.4.0/24
PORT STATE SERVICE
22/tcp open ssh
443/tcp open https
firewall.allow(443).deny('*');
waf.rule('rate-limit', 120 / 60s);
def classify(ticket):
intent = model.predict(ticket.text)
if intent.confidence < 0.8:
return route_to_human(ticket)
return automate(intent)
for event in stream('auth.log'):
if event.failed > 5:
alert('brute force', event.ip)
block(event.ip, ttl=900)
def classify(ticket):
intent = model.predict(ticket.text)
if intent.confidence < 0.8:
return route_to_human(ticket)
return automate(intent)
for event in stream('auth.log'):
if event.failed > 5:
alert('brute force', event.ip)
block(event.ip, ttl=900)
deploy:
stage: production
steps:
- run: npm ci && npm test
- run: sast --fail-on high
- run: terraform apply -auto
backup: daily
monitor: uptime 99.9
0x7f3a 4c2e 9b10 e5d4 a0c3
sha256: 9f2c...e81b OK
encrypt(aes_256_gcm, payload)
deploy:
stage: production
steps:
- run: npm ci && npm test
- run: sast --fail-on high
- run: terraform apply -auto
backup: daily
monitor: uptime 99.9
0x7f3a 4c2e 9b10 e5d4 a0c3
sha256: 9f2c...e81b OK
encrypt(aes_256_gcm, payload)