Showing posts with label Web Security. Show all posts
Showing posts with label Web Security. Show all posts
Friday, December 10, 2010
Security mechanism in Chrome OS and Browser
Monday, January 11, 2010
Principles of Software Security
Principles of Software Security
Security is a major concern for the Softwares we design.
There are a number of established security principles that apply to the process of software design. These accepted principles help us design secure applications.
Have a look on these Security Principals:
- Adopt the principle of least privilege. Processes that run script or execute code should run under a least privileged account to limit the potential damage that can be done if the process is compromised. If a malicious user manages to inject code into a server process, the privileges granted to that process determine to a large degree the types of operations the user is able to perform. Code that requires additional trust (and raised privileges) should be isolated within separate processes.
- Use defense in depth. Place check points within each of the layers and subsystems within your application. The check points are the gate-keepers that ensure that only authenticated and authorized users are able to access the next downstream layer.
- Don't trust user input. Applications should thoroughly validate all user input before performing operations with that input. The validation may include filtering out special characters. This preventive measure protects the application against accidental misuse or deliberate attacks by people who are attempting to inject malicious commands into the system. Common examples include SQL injection attacks, cross-site scripting attacks, and buffer overflow.
- Use secure defaults. A common practice among developers is to use reduced security settings, simply to make an application work. If your application demands features that force you to reduce or change default security settings, test the effects and understand the implications before making the change.
- Don't rely on security by obscurity. Trying to hide secrets by using misleading variable names or storing them in odd file locations does not provide security. In a game of hide-and-seek, it's better to use platform features or proven techniques for securing your data.
For example, all of your files that contain data like xml files, can be put in App_Data folder in an ASP.net application to make them secure and inaccessible from attackers.
- Check at the gate. You don't always need to flow a user's security context to the back end for authorization checks. Often, in a distributed system, this is not the best choice. Checking the client at the gate refers to authorizing the user at the first point of authentication (for example, within the Web application on the Web server), and determining which resources and operations (potentially provided by downstream services) the user should be allowed to access.
If you design solid authentication and authorization strategies at the gate, you can circumvent the need to delegate the original caller's security context all the way through to your application's data tier. - Assume external systems are insecure. If you don't own it, don't assume security is taken care of for you.
- Reduce surface area. Avoid exposing information that is not required. By doing so, you are potentially opening doors that can lead to additional vulnerabilities. Also, handle errors gracefully; don't expose any more information than is required when returning an error message to the end user.
- Fail to a secure mode. If your application fails, make sure it does not leave sensitive data unprotected. Also, do not provide too much detail in error messages; meaning don't include details that could help an attacker exploit a vulnerability in your application. Write detailed error information to the Windows event log.
- Remember you are only as secure as your weakest link. Security is a concern across all of your application tiers.
- If you don't use it, disable it. You can remove potential points of attack by disabling modules and components that your application does not require. For example, if your application doesn't use output caching, then you should disable the ASP.NET output cache module. If a future security vulnerability is found in the module, your application is not threatened.
Key Terminology
- Authentication. Positively identifying the clients of your application; clients might include end-users, services, processes or computers.
- Authorization. Defining what authenticated clients are allowed to see and do within the application.
- Secure Communications. Ensuring that messages remain private and unaltered as they cross networks.
- Impersonation. This is the technique used by a server application to access resources on behalf of a client. The client's security context is used for access checks performed by the server.
- Delegation. An extended form of impersonation that allows a server process that is performing work on behalf of a client, to access resources on a remote computer. This capability is natively provided by Kerberos on Microsoft® Windows® 2000 and later operating systems. Conventional impersonation (for example, that provided by NTLM) allows only a single network hop. When NTLM impersonation is used, the one hop is used between the client and server computers, restricting the server to local resource access while impersonating.
- Security Context. Security context is a generic term used to refer to the collection of security settings that affect the security-related behavior of a process or thread. The attributes from a process' logon session and access token combine to form the security context of the process.
- Identity. Identity refers to a characteristic of a user or service that can uniquely identify it. For example, this is often a display name, which often takes the form authority/user name.
References:
Labels:
Anti Hacking,
ASP.net,
Cyber Security,
Hacking,
Pattern and Practices,
Software Security,
Web Security
Thursday, September 17, 2009
Web Security - A Report by Websense for first half of 2009
WebSense (websense.com) is a leading web security research company.
They have released report of web-security for the first 2 quarters of year 2009.
Its worth reading. Here is the summary:
Web Security
• Websense Security Labs identified a 233 percent growth in the number of malicious Web sites in the last six months
and a 671 percent growth during the last year.
• 77 percent of Web sites with malicious code are legitimate sites that have been compromised. This remains
unchanged from the last six-month period.
• 61 percent of the top 100 sites either hosted malicious content or contained a masked redirect to lure unsuspecting
victims from legitimate sites to malicious sites.
• 95 percent of user-generated comments to blogs, chat rooms and message boards are spam or malicious.
• 50 percent of Web pages linked to Web sites categorized as “Sex” also served malicious content.
• 69 percent of all Web pages with any objectionable content (e.g. Sex, Adult Content, Gambling, Drugs) also had at
least one malicious link.
• 78 percent of new Web pages discovered in the first half of 2009 with any objectionable content had at least one
malicious link.
Email Security
• 87.7 percent of email messages were spam. This represents a three percent increase over the last six months.
• 85.6 percent of all unwanted emails in circulation during this period contained links to spam sites and/or malicious
Web sites.
• Shopping remained the leading topic of spam (28 percent), followed closely by cosmetics (18.4 percent), medical
(11.9 percent) and education (9.5 percent). Education themed spam has nearly doubled over the previous period
and may be related to the recession as spammers seek to exploit people looking to gain new skills or obtain fake
qualifications to help their job prospects.
Data Security
• 37 percent of malicious Web/HTTP attacks included data-stealing code. This remains unchanged from the last
six-month period.
• 57 percent of data-stealing attacks are conducted over the Web. This number has stayed consistent over the
six-month period.
Read more here:

Few interesting facts:
More than 47 percent of the top 100 sites support user-generated content.
• Not surprisingly, sites that allow user-generated content comprise the majority of the top 50 most
active distributors of malicious content. Blog hosting sites that offer free hosting and good reputations
provide malware authors with the perfect combination to compromise unsuspecting users.
• 61 percent of the top 100 sites either hosted malicious content or contained a masked redirect to
lure unsuspecting victims from legitimate sites to malicious sites. In many cases these redirects
appeared as the actual Web site, when in fact the content served on that page was being hosted
elsewhere.
• Websense Defensio technology enabled Websense Security Labs to identify a significant and
alarming trend regarding the ease with which Web 2.0 sites can be compromised: 95 percent
of user generated comments
Friday, June 13, 2008
Some Hacking / Anti hacking tools
here are some Hacking / Anti hacking tools to download
http://www.foundstone.com/us/resources-free-tools.asp
http://www.foundstone.com/us/resources-free-tools.asp
Labels:
Anti Hacking,
Ethical HAcking,
Hacking,
Softwares,
Web Security
Subscribe to:
Posts (Atom)
