diff --git a/CHANGELOG.md b/CHANGELOG.md
index 99dacee..d85566c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,26 @@ All notable changes to this project are documented here. The project follows
## [Unreleased]
+## [1.17.0] — 2026-10-25
+
+- DDoS attacks now have a shape: a vector (DNS reflection, NTP or CLDAP
+ amplification, SYN or HTTP flood), a size from a few Gbps up to a
+ multi-terabit "botnet of toasters" monster, a target POP, a duration, and
+ an entry point among that city's uplinks. Most are modest spikes; the big
+ ones are rare.
+- A DDoS toolbox in the NOC. A live attack panel shows the vector, size,
+ entry and what each mitigation is doing right now:
+ - **RTBH** — free and instant, but it blackholes the victim, so the
+ attack and the customer both go dark. Earns the Collateral Damage badge.
+ - **Flowspec** — a one-time licence that drops known UDP floods (DNS, NTP,
+ CLDAP, SYN) at your edge. Precise, but useless against an HTTP flood, and
+ the junk still fills the port it enters.
+ - **Scrubbing center** — cleans attacks network-wide, as before, and still
+ risks the GRE/MSS black hole.
+ - **HackBack 3000™ by Skynot AI** — a tempting red button. Sometimes it
+ ends the attack; more often it flattens an innocent and earns you a
+ regulator fine and the Vigilante badge. Hack-back is illegal in reality.
+
## [1.16.0] — 2026-10-25
- Customers on interconnection fabrics. Companies already on Megapork,
diff --git a/package-lock.json b/package-lock.json
index 78df2f9..408a2a4 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "seriesoftubes",
- "version": "1.16.0",
+ "version": "1.17.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "seriesoftubes",
- "version": "1.16.0",
+ "version": "1.17.0",
"devDependencies": {
"jsdom": "24.1.3"
},
diff --git a/package.json b/package.json
index eb64b5c..10da1a9 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "seriesoftubes",
- "version": "1.16.0",
+ "version": "1.17.0",
"description": "A cartoon browser game about building the internet.",
"private": true,
"license": "MIT",
diff --git a/site/i18n/it.js b/site/i18n/it.js
index 3f6b40d..86e134b 100644
--- a/site/i18n/it.js
+++ b/site/i18n/it.js
@@ -914,10 +914,49 @@
"Someone plugged a loop into the {ix} fabric. Broadcast storm! All peering there is down.":"Qualcuno ha collegato un loop al fabric di {ix}. Broadcast storm! Tutto il peering lì è giù.",
"BGP route leak: a small ISP is announcing {net}'s prefixes. Traffic to them over transit is black-holed. Direct peering still works.":"Route leak BGP: un piccolo ISP sta annunciando i prefissi di {net}. Il traffico verso di loro via transit finisce in un buco nero. Il peering diretto funziona ancora.",
"{fabric} is having a bad day. Every virtual circuit on their fabric is down.":"{fabric} sta avendo una brutta giornata. Tutti i circuiti virtuali sul loro fabric sono giù.",
-"DDoS on {city}
A botnet of smart toasters tried. Your scrubbing center in {scrub} ate most of it.":"DDoS su {city}
Una botnet di tostapane smart ci ha provato. Il tuo centro di scrubbing a {scrub} se n’è mangiato quasi tutto.",
-"Mostly absorbed by scrubbing.":"Assorbito quasi tutto dallo scrubbing.",
-"A botnet of smart toasters is DDoSing {city}. Junk traffic is eating your capacity.":"Una botnet di tostapane smart sta facendo DDoS su {city}. Il traffico spazzatura si sta mangiando la tua capacità.",
-"Buy scrubbing":"Compra lo scrubbing",
+"DNS reflection":"riflessione DNS",
+"NTP amplification":"amplificazione NTP",
+"CLDAP flood":"flood CLDAP",
+"SYN flood":"flood SYN",
+"HTTP flood":"flood HTTP",
+"A {size} {vec} attack is hitting {city}{how}.":"Un attacco {vec} da {size} sta colpendo {city}{how}.",
+", in via {e}":", entra da {e}",
+"Your mitigation is eating most of it.":"La tua mitigazione se ne sta mangiando quasi tutto.",
+"Junk traffic is eating your capacity. Open the NOC to fight back.":"Il traffico spazzatura si sta mangiando la tua capacità. Apri il NOC per difenderti.",
+"Open NOC":"Apri il NOC",
+"Live attack: {city}":"Attacco in corso: {city}",
+"{size} · {vec}{entry} · {n}d left":"{size} · {vec}{entry} · {n}g rimasti",
+"Blackholed: the junk is gone, and so is {city}. The attack got what it wanted.":"In buco nero: la spazzatura è sparita, e anche {city}. L’attacco ha ottenuto ciò che voleva.",
+"Reaching your network: {g}":"Arriva alla tua rete: {g}",
+"Scrubbing in {city} is cleaning it":"Lo scrubbing a {city} lo sta pulendo",
+"No scrubbing center":"Nessun centro di scrubbing",
+"Flowspec is dropping {vec} at your edge":"Flowspec sta scartando {vec} al tuo edge",
+"Flowspec cannot catch an {vec} (application layer)":"Flowspec non può fermare un {vec} (livello applicativo)",
+"No Flowspec licence":"Nessuna licenza Flowspec",
+"Stop blackholing":"Togli il buco nero",
+"Blackhole the target (RTBH)":"Metti il bersaglio in buco nero (RTBH)",
+"HackBack 3000™ $20k":"HackBack 3000™ $20k",
+"Buy Flowspec {cost}":"Compra Flowspec {cost}",
+"RTBH is free and instant, but it drops everything to the victim, attack and customer alike. HackBack 3000™ by Skynot AI sometimes ends it, and sometimes flattens an innocent and earns you a fine.":"L’RTBH è gratis e immediato, ma scarta tutto ciò che va alla vittima: attacco e cliente insieme. HackBack 3000™ di Skynot AI a volte lo ferma, e a volte travolge un innocente e ti becca una multa.",
+"Flowspec filtering":"Filtro Flowspec",
+"Licensed":"Con licenza",
+"Not licensed":"Senza licenza",
+"Push drop rules to your edge to stop known UDP floods (DNS, NTP, CLDAP, SYN). Precise, but it cannot touch an HTTP flood and the junk still fills the port it enters.":"Spingi regole di scarto al tuo edge per fermare i flood UDP noti (DNS, NTP, CLDAP, SYN). Preciso, ma non tocca un flood HTTP e la spazzatura riempie comunque la porta da cui entra.",
+"Buy Flowspec licence {cost}":"Compra la licenza Flowspec {cost}",
+"Flowspec licensed.
Your edge now drops DNS, NTP, CLDAP and SYN floods automatically. HTTP floods still need scrubbing.":"Flowspec attivo.
Il tuo edge ora scarta da solo i flood DNS, NTP, CLDAP e SYN. I flood HTTP servono ancora lo scrubbing.",
+"No attack to blackhole right now.":"Nessun attacco da mettere in buco nero adesso.",
+"RTBH announced.
You blackholed the target in {city}. The flood stops, and so does everyone there.":"RTBH annunciato.
Hai messo il bersaglio a {city} in buco nero. Il flood si ferma, e con lui tutti quelli lì.",
+"Blackhole withdrawn.
{city} is reachable again. Brace for the junk.":"Buco nero ritirato.
{city} è di nuovo raggiungibile. Preparati alla spazzatura.",
+"Nothing to hack back right now.":"Niente da contrattaccare adesso.",
+"HackBack 3000™ strikes back!
Skynot AI traced the botnet and politely bricked it. The attack on {city} stops cold.":"HackBack 3000™ colpisce ancora!
Skynot AI ha tracciato la botnet e l’ha gentilmente spenta. L’attacco su {city} si ferma di colpo.",
+"HackBack 3000™ hit the wrong target.
{who} A regulator sends you a {fine} fine, and the attack rolls on.":"HackBack 3000™ ha colpito il bersaglio sbagliato.
{who} Un’autorità ti manda una multa da {fine}, e l’attacco continua.",
+"Skynot AI flattened a grandma's internet-connected fridge.":"Skynot AI ha steso il frigo connesso di una nonna.",
+"You counter-flooded a hospital in a country you cannot pronounce.":"Hai contro-floodato un ospedale in un paese che non sai pronunciare.",
+"The botnet was already someone else’s botnet. They are furious.":"La botnet era già la botnet di qualcun altro. Sono furiosi.",
+"Vigilante":"Giustiziere",
+"Fire the HackBack 3000™ and flatten an innocent.":"Spara con l’HackBack 3000™ e travolgi un innocente.",
+"Collateral Damage":"Danni collaterali",
+"Blackhole one of your own cities to stop a DDoS.":"Metti in buco nero una tua città per fermare un DDoS.",
"Traffic rerouted, customers barely noticed.":"Traffico reinstradato, i clienti se ne sono accorti appena.",
"Rush repair":"Riparazione urgente",
"Metro ring cut":"Anello metro tagliato",
diff --git a/site/index.html b/site/index.html
index d90ab3b..2eb6488 100644
--- a/site/index.html
+++ b/site/index.html
@@ -582,6 +582,16 @@ const SITE2_N=[tr('The Other Building'),tr('Campus B (the one with parking)'),tr
const siteName=(c,s)=>s==='b'?SITE2_N[hstr(c)%SITE2_N.length]:CITY[c].dc;
const popCost=c=>POP_COST+(c&&CITY[c]&&CITY[c].ru?RU_BOX:0)+(c&&CITY[c]&&CITY[c].uae?UAE_LIC:0)+(c&&CITY[c]&&CITY[c].saudi?KSA_LIC:0);
const CN_LIC=150000, CN_JV_MO=6000, SCRUB_COST=60000, SCRUB_MO=5000;
+// DDoS has a shape now: a vector, a size and an entry point. `fs` is whether Flowspec can drop it at the
+// edge — it catches the known volumetric UDP floods, but an application-layer HTTP flood sails right through.
+const FLOWSPEC_LIC=40000;
+const DDOS_VEC={
+ dns:{n:tr('DNS reflection'),fs:true},
+ ntp:{n:tr('NTP amplification'),fs:true},
+ cldap:{n:tr('CLDAP flood'),fs:true},
+ syn:{n:tr('SYN flood'),fs:true},
+ http:{n:tr('HTTP flood'),fs:false},
+};
const MYIX_COST=80000, MYIX_MO=3000, MYIX_FEE=1500, START_CASH=200000;
// Your own exchange's switching fabric. Bigger fabrics carry more and attract more members.
const MYIX_FAB=[{n:'400G',g:400,cost:0,mo:3000,max:12},{n:'1.6T',g:1600,cost:60000,mo:6000,max:20,lvl:2},{n:'6.4T',g:6400,cost:200000,mo:12000,max:30,lvl:3},{n:'25.6T',g:25600,cost:600000,mo:25000,max:45,lvl:4}];
@@ -1370,7 +1380,7 @@ function scenarioModal(){const wk=weekly(),h=scnHof();let best=null;try{best=JSO
function newGame(name,home){
S={v:1,name,asn:200000+Math.floor(_rand()*15000),home,day:0,cash:START_CASH,
ltv:2,t1v:2,pops:{[home]:{day:0,bb:null,boost:0,down:0,routers:1,gen:false}},links:[],nni:[],transit:[],ixp:{},rs:{},peers:{},pni:[],caches:[],biz:[],offers:[],myIx:{},
- done:{},inc:[],ev:{},priceMul:1,nextFail:45,nextEvent:40,usedNames:[],stats:{survived:0,incidents:0,peak:0},cnLic:{state:'none'},scrubAt:null,won:false,lost:false,neg:0,loans:[],loanOffers:[],loanStrikes:0};
+ done:{},inc:[],ev:{},priceMul:1,nextFail:45,nextEvent:40,usedNames:[],stats:{survived:0,incidents:0,peak:0},cnLic:{state:'none'},scrubAt:null,ddosFs:false,won:false,lost:false,neg:0,loans:[],loanOffers:[],loanStrikes:0};
}
/* ================= HELPERS ================= */
@@ -1585,11 +1595,19 @@ function compute(){
R2.cityEye[c]=eye;R2.cityDem[c]=d;R2.citySrv[c]=0;R2.demand+=d;
for(const n of NETS)R2.demTo[n.id]=(R2.demTo[n.id]||0)+d*(SH[n.id]||0);
if(!popUp(c))continue;
- const dd=ev.ddos&&ev.ddos.city===c&&ev.ddos.until>day?d*0.7*(S.scrubAt?0.15:1):0;
- const bh=dd&&TRX&&TRX.blackhole;if(dd&&!bh)for(const n of NETS)flows.push({c,n:n.id,rem:dd*NSH[n.id],junk:true});if(bh)R2.teBlack+=dd+d*0.1;
+ // A shaped attack: `rtbh` is the player pulling the plug on the victim IP (junk gone, customer dark too);
+ // `edge` is the crude RouteScript `blackhole ddos` filter (junk gone, 10% of real traffic with it). Flowspec
+ // (a standing licence) and a scrubbing center each knock the flood down before it reaches the sim.
+ const atk=ev.ddos&&ev.ddos.city===c&&ev.ddos.until>day?ev.ddos:null;
+ const rtbh=!!(atk&&atk.bh), edge=!!(atk&&TRX&&TRX.blackhole&&!rtbh);
+ let dd=0;
+ if(atk&&!rtbh){let mult=1;if(DDOS_VEC[atk.vec]&&DDOS_VEC[atk.vec].fs&&S.ddosFs)mult=Math.min(mult,0.25);if(S.scrubAt)mult=Math.min(mult,0.15);if(edge)mult=0;dd=atk.gbps*mult;}
+ const bh=rtbh||edge;
+ if(dd>0)for(const n of NETS)flows.push({c,n:n.id,rem:dd*NSH[n.id],junk:true});
+ if(edge)R2.teBlack+=atk.gbps*0.15+d*0.1;if(rtbh)R2.teBlack+=atk.gbps+d;
R2.cityBlocked=R2.cityBlocked||{};
const mtuH=ev.pmtud&&ev.pmtud.until>day?ev.pmtud:null,kr=CITY[c].kr;
- for(const n of NETS){const a=d*(SH[n.id]||0)*(bh?0.9:1)*(mtuH&&mtuH.net===n.id?mtuH.f:1)*(kr&&ev.krroute>day&&n.id==='fbk'?0.8:1);if(a<=0)continue;
+ for(const n of NETS){const a=d*(SH[n.id]||0)*(rtbh?0:edge?0.9:1)*(mtuH&&mtuH.net===n.id?mtuH.f:1)*(kr&&ev.krroute>day&&n.id==='fbk'?0.8:1);if(a<=0)continue;
if(cacheNets.has(n.id)){flows.push({c,n:n.id,rem:a*0.85,cache:true});flows.push({c,n:n.id,rem:a*0.15});}
else flows.push({c,n:n.id,rem:a});}
}
@@ -1737,6 +1755,11 @@ function sanitize(s){
s.loans=s.loans.filter(l=>l&&own(BANKS,l.bank));s.loanOffers=s.loanOffers.filter(l=>l&&own(BANKS,l.bank));
s.usedNames=s.usedNames.filter(x=>typeof x==='string');s.log=s.log.filter(e=>e&&typeof e.t==='string').slice(0,30);
if(s.scrubAt&&!isCity(s.scrubAt))s.scrubAt=null;
+ s.ddosFs=!!s.ddosFs;
+ if(s.ev&&s.ev.ddos){const a=s.ev.ddos;
+ if(!a||typeof a!=='object'||!isCity(a.city)||!own(DDOS_VEC,a.vec))delete s.ev.ddos;
+ else{a.gbps=num(a.gbps,2);a.until=num(a.until,s.day);a.bh=!!a.bh;a.start=num(a.start,s.day);
+ if(!a.entry||typeof a.entry!=='object')a.entry={k:'edge',lab:''};else a.entry.lab=String(a.entry.lab||'').slice(0,60);}}
if(s.te){if(typeof s.te!=='object')s.te=null;else{s.te.on=!!s.te.on;s.te.script=typeof s.te.script==='string'?s.te.script.slice(0,4000):'';}}
return s;}
function migrate(s){sanitize(s);for(const b of [...s.biz,...s.offers])if(Array.isArray(b.reqs))b.reqs=b.reqs.filter(k=>!REQS[k]||!REQS[k].can||(isCity(b.city)&&(!b.city2||isCity(b.city2))&&REQS[k].can(b)));if(s.ltv!==2){for(const l of s.links)if(l.kind==='wave'&&l.tier>=3)l.tier=Math.min(LT.length-1,l.tier+1);s.ltv=2;}if(s.dk){s.dk.m=s.dk.m||{};s.dk.add=s.dk.add||{};s.dk.ret=s.dk.ret||{};s.dk.retUsed=s.dk.retUsed||{};}s.hist=s.hist||[];s.loans=s.loans||[];s.loanOffers=s.loanOffers||[];s.loanStrikes=s.loanStrikes||0;for(const l of s.links||[])if(!l.kind)l.kind='wave';
@@ -1895,6 +1918,27 @@ const HARMLESS=[
function lagsN(){const o=[];for(const t of S.transit)if((t.n||1)>=2&&!(t.down>S.day))o.push({k:'t',id:t.id,o:t,n:t.n,lab:tr('{name} transit LAG in {city}',{name:NET[t.net].name,city:CITY[t.city].name})});
for(const p of S.pni)if((p.n||1)>=2)o.push({k:'p',id:p.id,o:p,n:p.n,lab:tr('PNI LAG with {name} in {city}',{name:NET[p.net].name,city:CITY[p.city].name})});
for(const x in S.ixp){const n=(S.ixn||{})[x]||1;if(n>=2&&!S.myIx[x])o.push({k:'ix',id:x,n,lab:tr('{ix} LAG in {city}',{ix:ixName(x),city:CITY[ixCity(x)].name})});}return o;}
+// Where the junk comes in: one of the city's live uplinks, or just "the edge" if it has none yet.
+function ddosEntry(c){const o=[];
+ for(const t of S.transit)if(t.city===c&&!(t.down>S.day))o.push({k:'t',lab:tr('{net} transit',{net:NET[t.net].name})});
+ for(const x of ixIdsIn(c))if(S.ixp[x]!==undefined)o.push({k:'ix',lab:tr('{ix} peering',{ix:ixName(x)})});
+ for(const p of S.pni)if(p.city===c)o.push({k:'p',lab:tr('PNI with {net}',{net:NET[p.net].name})});
+ return o.length?pick(o):{k:'edge',lab:''};}
+// The NOC's live attack view: what is hitting you, what each tool would do about it right now, and the buttons.
+function ddosPanel(){
+ const a=S&&S.ev&&S.ev.ddos;if(!a||a.until<=S.day||!S.pops[a.city])return '';
+ const V=DDOS_VEC[a.vec]||{n:'?',fs:false},fsOn=V.fs&&S.ddosFs,scrOn=!!S.scrubAt;
+ let mult=1;if(fsOn)mult=Math.min(mult,0.25);if(scrOn)mult=Math.min(mult,0.15);
+ const land=a.bh?0:Math.round(a.gbps*mult);
+ let h=`
${tr('Your Network Operations Center. Every notification also lands here. Things fail all the time on the internet. Redundant links and multiple upstreams let traffic reroute by itself.')}
`; h+=`${tr('All systems green. Enjoy it while it lasts.')}
`; - for(const i of S.inc){h+=`