Default passwords such as "admin" and "password" will be illegal for electronics firms to use in California from 2020.
The state has passed a law that sets higher security standards for net-connected devices made or sold in the region.
It demands that each gadget be given a unique password when it is made.
Before now, easy-to-guess passwords have helped some cyber-attacks spread more quickly and cause more harm.
The Information Privacy: Connected Devices bill demands that electronics manufacturers equip their products with "reasonable" security features.
This can mean a unique password or a start-up procedure that forces users to generate their own code when using the gadget for the first time.
The bill also allows customers who suffer harm when a company ignores the law to sue for damages.
Writing on tech news site the Register Kieren McCarthy said the law was "a step forward" but also a "massive missed opportunity".
A bigger problem than poor passwords was the creation of devices that could not be updated, he said.
California should have added clauses that required manufacturers to take a more rounded approach, he said, to limit how much access malicious hackers can get to all kinds of devices.
Many recent cyber-attacks have taken advantage of the default and easy-to-guess passwords on the devices found in millions of homes and offices.
In late 2016, Twitter, Spotify, and Reddit were among sites taken offline by an attack that took advantage of poor passwords on lots of net-connected gadgets including webcams and other so-called smart home hardware.
An attack by malware known as VPNFilter is currently targeting home routers and is believed to have infected more than 500,000 devices.
Latest Stories
-
Philip Nai and friends spend time with kids of Agblezaa on Christmas eve
50 minutes -
Education is in crisis – NCPTA General Secretary
1 hour -
Celebrating 65 years of impact: Commonwealth scholars and fellows alumni in Ghana
1 hour -
Our confidence in the law has borne fruits – Ebi Bright on SC ruling
2 hours -
Mandamus application to be heard by new High Court judge – Supreme Court rules
2 hours -
Krofuom residents attack GNFS personnel as fire destroys Trinity TV and church
2 hours -
Movie review: Peter Sedufia’s ‘One Night Guests’
3 hours -
Three dead, several injured in accident on Cape Coast-Accra highway
3 hours -
MTN donates to support two hospitals in Savannah region
3 hours -
NDC victory a call to action for agricultural and economic revitalization in Ghana – Klutse Kudomor
3 hours -
Adidome Chief alarmed over rising teenage pregnancy in Central Tongu, calls for collective stakeholder action
3 hours -
MTN Foundation celebrates Christmas with new mothers across Ghana
4 hours -
MTN Ghana presents hampers to 60 Christmas babies in Central region
4 hours -
Re-collation: Supreme Court quashes results in Tema Central, Ablekuma North, Techiman South, Okaikwei Central
4 hours -
NDC accuses trial judge of bias over order to re-collate outstanding parliamentary results
5 hours