Tipping The Scales Toward Secure Code | eWeek

Tipping The Scales Toward Secure Code

Written By
Rebecca Rohan
Rebecca Rohan
Jun 15, 2004
2 minute read
eWeek content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

Everybody can use more secure code—and sometimes the best way to hone your skills is to listen to other programmers. Here are 18 concise tips offered by your fellow developers, each a specific (and opinionated!) piece of advice that you can put to work immediately. You may not agree with all these suggestions, but each is worth contemplating.

Be Careful What You Call

“If your application calls a DLL or another program, make sure you call it specifically,” says Joshua Levy, senior software engineer for Reasoning Inc. in Mountain View, CA. “Dont rely on relative paths or search paths. The danger here is that you will end up calling a different program or DLL than you expected. This is the ultimate security flaw, because suddenly youre running a program or DLL written by the attacker! This is often a problem with inside jobs, where an employee is trying to get more permissions than he should, or [to] read data or files that he isnt allowed to read. We review other peoples code, and I see a huge amount of these sorts of errors.” Levy writes programs to find and report such weaknesses. “Its better to check that the executable or DLL is what you expected, using signing or CRC,” he suggests.

Security Focus

“Get someone to review your code specifically for security,” reccomends Levy. “Weve got huge QA departments that look for defects, but we dont have similar organizations that look for security vulnerabilities. Companies dont spend money unless they can see the value. When your security audit is done by a third party, you get the benefit of their expertise without the danger of your internal politics.”

eWeek Logo

eWeek has the latest technology news and analysis, buying guides, and product reviews for IT professionals and technology buyers. The site's focus is on innovative solutions and covering in-depth technical content. eWeek stays on the cutting edge of technology news and IT trends through interviews and expert analysis. Gain insight from top innovators and thought leaders in the fields of IT, business, enterprise software, startups, and more.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.