Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. Secure by design,
in software engineering, means that the software has been designed from
the ground up to be secure. Malicious practices are taken for granted
and care is taken to minimize impact when a security vulnerability is
discovered or on invalid user input. Generally, designs that work well
do not rely on being secret. It is not mandatory, but proper security
usually means that everyone is allowed to know and understand the design
because it is secure. This has the advantage that many people are
looking at the code, and this improves the odds that any flaws will be
found sooner (Linus's law). Of course, attackers can also obtain the
code, which makes it easier for them to find vulnerabilities as well.