Search: Home Bugtraq Vulnerabilities Mailing Lists Jobs Tools Beta Programs
Secure Programming
Writing Secure code Dec 27 2002 12:46PM
Rahul Chander Kashyap (rahul nsecure net) (6 replies)
Re: Writing Secure code Dec 28 2002 03:36AM
K K Mookhey (cto nii co in)
Re: Writing Secure code Dec 27 2002 11:16PM
Bob Bruen (coldrain sover net)
Re: Writing Secure code Dec 27 2002 06:17PM
Dana Epp (dana vulscan com)
Re: Writing Secure code Dec 27 2002 06:03PM
Valdis Kletnieks vt edu (2 replies)
Re: Writing Secure code Dec 28 2002 07:40AM
Glynn Clements (glynn clements virgin net) (2 replies)
Re: Writing Secure code Dec 29 2002 12:35AM
Cesar (cesarc56 yahoo com)
Re: Writing Secure code Dec 28 2002 07:04PM
Crispin Cowan (crispin wirex com)
RE: Writing Secure code Dec 27 2002 08:51PM
Roger Alexander (rta cs colostate edu) (1 replies)
RE: Writing Secure code Dec 30 2002 12:41PM
Matt McClellan (mmcclellan nfr com) (2 replies)
RE: Writing Secure code Jan 01 2003 02:46AM
peleus (peleus peleus net) (1 replies)

> A proposal:
>
> Since a lot of the discussion on this thread (including my own
> contributions) has focused on semantic issues such as defining "secure
> code", why not take a stab at a working definition for secure code so we
> can get down to brass tacks?

I agree.. I think this discussion has lost site of some important
key issues. Some people skimmed them but I don't think they were
nailed. For instance, take this psuedo discussion:

A: In order for me to deem your project secure, your software must be
stable. Is your software 100% stable?

B: Yes.

A: So if I take a hammer to your hard drive, your software will continue
to run?

B: No.... But physical security is not the responsibility of software
developers!

A: Sorry.... Your software is not secure! There is a flaw!

In order to define security, you have to define the environment it
will be judged in. The exit(0) command is only flawed on certain systems
with certain libraries. If I have a system with flawed FTP libraries but
it is NOT networked to any other computer, is it insecure?
In addition, security from the business POV is about risk
management and if you are lucky risk elimination in certain cases. Look
at car development. An air bag and ABS brakes makes your car more secure
but only in certain situations. As long as you are on the road, their
will be risk. The goal in car development is to make the car as safe as
possible and still usable.
You can define a program to be "secure" in a specific environment
under specific conditions. It is the responsibility of everyone (not just
developers) to ensure that the software remains secure. Guards prevent
the hard drive attack, sys admins prevent the network attacks and code
developers must ensure that inputs are checked, etc.
*It is the responsibility of all the users of the software to
notify everyone involved when the environment changes so that each part of
the team adjusts to ensure the software's security.*
If un-networked software suddenly becomes networked then the
environment changes and the software is not secure until it is audited
for the new environment. It is common for developers to say, "Well I
never thought someone would use it for that!"
Having said that, you can get into a more specific discussions of
the security attacks that software programmers are responsible for and how
they can prevent them. If a library the programmer uses is flawed, is it
his software's flaw or the libraries flaw? Is the programmer responsible
for all the libraries his code includes? These type of specific
definitions define whether software is "secure". Security is a relative
measurement.

-Peleus

[ reply ]
RE: Writing Secure code Jan 03 2003 04:36AM
Timo Sirainen (tss iki fi)
Re: Writing Secure code[update] Dec 31 2002 10:20AM
Rahul Chander Kashyap (rahul nsecure net) (2 replies)
Re: Writing Secure code[update] Jan 01 2003 12:21PM
K K Mookhey (cto nii co in) (2 replies)
Re: Writing Secure code[update] Jan 04 2003 12:31AM
Warwick Molloy (wmolloy optushome com au)
Re: Writing Secure code[update] Jan 02 2003 11:55PM
Alex Russell (alex netWindows org)
Re: Writing Secure code[update] Dec 31 2002 08:28PM
Crispin Cowan (crispin wirex com)
RE: Writing Secure code Dec 27 2002 05:46PM
Jeremy Epstein (jepstein webmethods com) (1 replies)
Re: Writing Secure code Dec 27 2002 08:50PM
Valdis Kletnieks vt edu
Re: Writing Secure code Dec 27 2002 05:43PM
John Viega (viega list org) (2 replies)
Re: Writing Secure code Dec 27 2002 09:54PM
Alex Russell (alex netWindows org) (1 replies)
Re: Writing Secure code Dec 27 2002 08:57PM
John Viega (viega list org)
RE: Writing Secure code Dec 27 2002 08:59PM
Matt McClellan (mcc nfr com) (1 replies)
Re: Writing Secure code Dec 27 2002 09:06PM
John Viega (viega list org)







 

Privacy Statement
Copyright 2009, SecurityFocus