Testing Website With Owasp-zap

The Google code website link: https://code.google.com/p/zaproxy/

Here is an interesting bit of info (from the link above):

ZAP came second in the Top Security Tools of 2014 as voted by ToolsWatch.org readers

owaspzapscreenshot

 

Here is a screenshot with my test on my own website – www.fixvirus.com

I clicked on the response tab after Owasp-Zap tries to execute a variety of illegal attempts on my website.

If you have a website and need this done all you need is a copy of Kali-Linux and permission to “attack” the site.

As you can see OWASP runs a variety of GET commands with some attempts at sql injection and more logic testing. It has been shown when you enter “1=1” in a form the system responding may come back with more data then it was supposed to…  why would it do that? Well for some reason the person developing the website code did not do enough security testing.

 

This is why we recommend always to have a seperate entitiy testing your website, especially if it is performing some kind of dynamic code, accesses a database, scripting (javascript), and other .net technologies.

 

This is a basic thing cybersecurity, but we want to review it with all.

 

Running a basic owasp-command is just the beginning…  After a security professional starts with that initial test, depending on the responses further tests may be warranted.

 

 

 

How Can You Test Your Network? Safely-Legally?

Let’s assume that you agree that some sort of testing of your computers/network is required or should be done.

 

How should you test your network?

There are daily scans coming onto all ip addresses on the Internet. This is a fact of life.  What is going on?

We have talked about this before: http://oversitesentry.com/how-many-scans-are-attacking-the-internet/

{Most interesting is work on detecting how many scans there were in the Internet on January 2014.

10.8 million scans from 1.76 million hosts

4.5 million (41.7%)scans attributable to the conficker worm TCP-SYN port 445}

scansby port

 

(I would not assume this type of traffic has slowed down in a year and couple of months)

So we know the hacker is scanning … somewhere and for some reason.

Let’s assume they have a hack-attack they want to perform, so they may be scanning for systems that would be susceptible for this hack-attack.  This is why it is important to keep up on the latest Security-news

And don’t just get your news from 1-3 sources.  It is good to get news from many sources, sift through the noise and then act.

The hackers are always looking to make money or obtain their political goals, end result is that they own your machine or in the hacker language: Pwn your machine.

pwnexplanationpwn: to conquer and gain ownership.

 

I realize we do not care to do any scanning and general security, but the hacker does their thing to Pwn you don’t mistake their concerted effort with your unknowing or lack of attention.

 

So the key is how should we scan the Internet facing systems? or internal systems?

 

The external systems will face external type attacks, since there is no firewall defending (unless you have an external proxy system, but then the proxy system is bare on the Internet)  Some system somewhere will be bare on the Internet. The firewall itself, some email server, or a webserver will be “bare” on the Internet.

we should want to test and scan the bare systems, and scan the systems that are supposed to be filtered.

Second we need to scan our internal systems… Why? because if an internal system is hacked it will try to hack other systems (disseminating malware).

The reason to scan internal systems is to make sure if some system did somehow get infected it will not infect other machines.

 

So what about the details? How exactly to test? this depends on your network and machines, so at this time I don’t want to get into details, instead give a general nature of how scans would work:

 

We test and audit your environment to make you safer    (A – Σ – Ω).

 

How much should I spend on Cybersecurity?

I want to discuss 2 articles and then answer the question on the title.

http://www.theguardian.com/small-business-network/2015/mar/24/hackers-cyberwar-businesses-cybercrime

{Hackers are winning the cyberwar and businesses are all too often simply hoping for the best, according to many security experts. }

anonymousgreenscreenqz.com

Cost of Cybercrime in UK is £18-27bn … supposedly.  This could actually be low, since many people do not discuss cybercrime. But if people are not discussing this crime because of embarrassment or other reasons (PR), then how can we actually tell what is really happening?

What can we actually attribute to real cybercime?

{He also alleges that some financial institutions have been compromised and have lost millions, but have kept this information under wraps. “In the past 10 years there has been at least one UK-based building society, which no longer exists, which lost about £50m to what was called a ghost transaction.}

There is very little hard data. and some cyber crime is attributed to potential IP crime (Intellectual Property)

The biggest threat is from organised gangs looking to steal data and IP from companies, which they can then exploit on the black market. The hackers are typically based overseas where authorities are less effective at preventing them.

Then I am revisiting my old post of http://oversitesentry.com/the-psychology-of-security/

Humanity is risk averse when it comes to gains and risk seeking when it comes to losses.

“Security is a tradeoff,” Schneier said, speaking to a packed audience at his RSA session. “What are you getting for what you’re giving up? Whether you make that tradeoff consciously or not, there is one.”

 

This is a very important concept to understand:

Humanity is risk averse when it comes to gains – the masses as a whole are risk averse if a choice of higher risk with higher gains versus lower risk and lower gains. we move to the lower risk choice.

Risk seeking when it comes to losses.  (even to the point of most people do not wear bullet proof vests, including police officers)  This means that when one has a choice of an action where one choice is to spend money and potentially lose something or spend less money and potentially lose more we will choose the 2nd one more often.

So coming back to the question:   How much should we spend on cybersecurity?

I can’t really say “we” now, because as a cyber security professional I will spend more on it then you will, since I can’t get hacked period. I will spend whatever time and resources necessary so that my computers and websites are not hacked.

You or your peers do not fear or understand the true nature of the cyber challenges that we have. So my question is this:

How much should a non-IT pro spend on cybersecurity?

 

For me to answer this correctly, I want to go back to the regular world and spend a little time in stating how much we spend on physical security. For one, we spend a certain dollar amount on our physical locks and key systems. For computer rooms we spend money on keycards and security people watching cameras.  So obviously a camera and the labor for the security person is reasonable even in areas where there is little if any crime.

Why hire security people, buy security cameras, biometric security devices… Etc? Will they be truly used once or twice to catch an actual criminal? Or is it part of the feeling of security that one wants for computer systems in a computer room?

biodevice2image from bioenabletech.com

 

biometricdevice  image from biometricdevices.blogspot.com

 

Biometric devices cost from $100 to $2000 and they have to integrate within a security system hardware/software combinations, so the cost will likely rise to several thousand dollars up to $10,000 with installation and training, but the reality is that an actual criminal will likely not attempt a physical attack on a computer room.

So should we make a comparison of potential security risks?

How accurate will the cybersecurity risk assessment be?  On top of all of this the only real statistic is whether one gets breached or not.

The reason everyone is getting hacked is that no one sees anybody actually get breached except for the well publicized attacks. So no matter what I would conjecture here, your perception is what matters.

 

And now we get back to the psychology of humanity with risk seeking when it comes to losses. So the reality is you will discount the scares and potential security problems and take a chance if you think there is higher risk in doing nothing.

Now we know why most businesses will get hacked period.  You have to go against the psychological grain to spend more money on security.

Contact us to help you decide.

 

 

Value of a Hacked Website

http://blog.sucuri.net/   has an interesting post about “The Impacts of a Hacked Website”

This is a good line:

 

We are learning the hard way, what large organizations already learned – being online is a responsibility and will eventually cost you something.

I now know that it was the Yoast  Google Analytics plug-in that caused this website to get hacked http://oversitesentry.com/after-action-report-on-my-hacked-wordpress-fixvirus-com/   I had installed the Yoast plug-in and then a little black box was suddenly on my site.

closeupofdothackedsite

After installing Yoast I did not realize it had a weakness:

http://seclists.org/fulldisclosure/2015/Mar/136   Apparently there was a security vulnerability

{ A security vulnerability in the plug-in allows an unauthenticated attacker to store arbitrary HTML, including JavaScript, in the WordPress administrator’s Dashboard on the target system. }

That is just the beginning in this analysis:

A hacked site can cause problems for you

1. To me the biggest problem is that Google will blacklist your site, you will not get any traffic.

I ran into that myself and was able to solve this very quickly, Google does fix the listing when you clean the malware

2. It can happen even to sites that have “nothing important” on them.

3. Brand reputation is a tough  nut to get back.

4. Hacks cost more than money(may also cost some money). The mental cost of having to fix or just the fact it was hacked.

 

For me the only problem was I had to move hosting companies that was going to be a lot of work which I was putting off.

If you have not gotten the message yet I am honest to a fault. I will tell you everything I know and then some stuff you might not want to hear.

In security that is the most important  aspect.

In wordpress I have learned to use Sucuri wordpress plus a backup plugin. Now that I am on a hosting company with Cpanel, I can control the site very well. With the Sucuri plugin any time a change occurs on the site an email is sent to my email. So that is like a change control.

 

PCI Compliance is not Computer Security

PCI compliance has the basic settings for computer security but it will not ensure your corporation will be secure.

For that to happen you must have personnel that implement security policies correctly, and it must be ingrained in all employees, as the weakest link is in our employee actions day after day.  It is difficult to make no mistakes day after day.

So we use technology to help us implement computer security.

We can use IDS, an Intrusion Detection System or an Intrusion Prevention System to set up  a network architecture plus anti-virus software on the desktop to set up a layered defense of the Networked computers.

 

 

 

PCIcompliance11.3

 

 

This section of the PCI DSS standard section 11.3 is the pentesting requirement for PCI compliance.

Why is pentesting a requirement? because no matter what you think you have it is always good for someone to try and break into the security to give an added level of security. The idea is that any misconfigured  systems or other types of mistakes will be caught by the pentesters and then those misconfigurations can be fixed.

best practices section:

pcibestpractices

Even with all of those items in place a good training program for preventing social engineering of your employees will be important to achieve.

Since that is the #1 reason for a beachhead in the initial attack. And with that initial attack the hacker will slowly try and leverage the initial compromise into more access until finding a system with some worthy information.

 

As I mentioned in this Post:

http://oversitesentry.com/why-risk-management-model-failed-us/

The problem we need to teach employees is that any mistake can start the slow creep and eventual avalanche of security problems.

Everyone that clicks on websites and email is a potential risk. So even with PCI compliance the security of your company data or customer data is still at risk.

failed-risk_management_model

There is a problem in our security profile standardized thinking:

1. Only taking care of the network and desktops will not completely secure the environment

2. Making all employees aware of social engineering

3. Increasing the IT knowledge of all employees

4. Home vpn connections into the corporate environment can also cause security problems.

5. Any vendor with access to your network could be a security liability.

 

 

It goes without saying that any potential problem can bloom into a full-fledged disaster within a few days to weeks.