Metadata Extraction using FOCA

Metadata Extraction using FOCA

In this Information age, Data is very crucial. From Information security point of view also data is what everybody is behind. Data loss for any organization can have a very negative impact financially as well as reputation wise. Most of the time people share their data knowingly, but sometimes we don’t realize and reveal critical information in the form of metadata and this data could play a major part in a cyber attack.

Metadata: Simple data can be described as raw values which need to be processed for the purpose of generating information and deriving knowledge. Meta data is commonly described as ‘data about data’; however this definition is not complete and does not covers all properties of metadata. A better definition as described by Wikipedia (http://en.wikipedia.org/wiki/Metadata) is as following.

Metadata (metacontent) is defined as data providing information about one or more aspects of the data, such as:

  • Means of creation of the data
  • Purpose of the data
  • Time and date of creation
  • Creator or author of data
  • Location on a computer network where the data was created
  • Standards used

Metadata has been utilized for various purposes from cataloging archives, data virtualization to SEO (Search Engine Optimization) for web sites. All this metadata is put up intentionally by the owner for the purpose of better and easy management of information; whereas we are going to talk about the metadata that user puts-up without being aware of (most of the time).

We can extract metadata for a given domain using a tool called as FOCA.

FOCA: FOCA means seal in Spanish language. FOCA or Fingerprinting Organizations with Collected Archives is a tool to discover files on target website and extract metadata from it. FOCA is a Windows based tool for the metadata extraction. It provides a GUI for easy usage. FOCA basically uses search engines for the purpose of discovering files and extracts metadata from them. There also exists an online version of the application, which can be found at http://www.informatica64.com/foca/.

Figure 1. FOCA extracts metadata from a word document

User simply needs to input the project name and the domain that need to be parsed for the discovery and extraction of metadata. FOCA utilizes different search engines for the purpose of discovering the list of files available on that domain. After discovering the list, the user can download the file(s) so that the metadata can be extracted from them, as shown in figure 1. This extracted metadata could reveal sensitive information such as the OS being used, specific application used to create the file, name of the machine etc. This information can help an attacker to craft his/her attacks against an infrastructure.

Policies and procedures need to be developed for document sanitization before hosting them online. Strong policies and mitigation methods like usage of Data Loss Prevention (DLP) tools (MetaShieldProtector, OpenDLP etc.), if employed properly can help to prevent such data loss and help the organization to implement defense in depth.

Cross Site Request forgery (CSRF)

Cross Site Request forgery (CSRF) is a kind of Web Application attack which tries to exploit the trust the website has in user’s browser. In this attack the attacker sends a crafted URL to the victim and if the victim clicks on the URL he/she makes an action on a web application he/she is authenticated to.  For example an attacker may send the following URL to the victim and if he/she clicks the URL money is transferred from his/her account to the attacker’s account (the victim needs to be authenticated to the Web Application beforehand):

<img src=http://vulnbank.com/withdraw?account=victim&amount=10000&for=attacker>

To safeguard its user’s from such attacks Web application developers need to implement Unique Request tokens to each request made by an authenticated user. This token need to be secure and should be associated with the user session and should have a time limit for its validity. Implementing CAPTCHA and re-authentication for sensitive web actions would also be helpful.

To test web applications against this attack we can use CSRFTester by OWASP. CSRFTester is java application which records an authentic user session and based on it generates a webpage which attempts to replicate the same action. We simply need to run the tool and configure our browser to go through local proxy (default port 8008) and start recording. After this we need to perform web actions (through the browser) and then we can generate HTML for the action. The generated HTML page would help us to check if the application is vulnerable or not. Figure 1 demonstrates CSRFTester.

Figure 1. CSRFTester

Creepy

Most of us use social networks and image sharing platforms without realizing how much information we might be leaking without realizing it. Sometimes we even reveal our current location through these platforms.

Creepy is a python application which can extract out this information and display the Geo-Location on a map. Currently creepy supports search for Twitter, Flickr, twitpic and some other platforms with some limitations. Creepy extracts the geo-location based on EXIF information stored in images, Geo-location information available through API and some other techniques.

Creepy can be used for the Information Gathering phase during a pentest and also a Proof-of-concept tool to demonstrate to users what information they are revealing about themselves. Figure 1 shows creepy in action.

Figure 1. Creepy in action

We should be aware that this information might be misused by stalkers and people with malicious intents. To safeguard ourselves from such information leakage we can disable the Geo-Location features on Social networks and our smart phones.

Sploitego: Maltego Local Transforms

There are many tools out there which can be used for the recon phase of a Pentest, but Maltego stands out of all. Maltego is basically an OSINT (Open Source Intelligence) and forensics application which is very useful for the information gathering purpose. Maltego is capable of pulling out open information from the web and connect it together based on the transform used. Maltego works on client-server architecture; the user can send queries using the client and see the relationship diagram between different entities. As all the information collected is open source so we need not to probe the original target and hence no log is generated on it.

Sploitego is a transform package which extends the capabilities of the original Maltego tool and provides functionality helpful from a pentester’s perspective. Sploitego is developed in Python by Nadeem Douba, a Senior Information Security Consultant. It provides the ability to perform local transforms like Nmap scanning, Nessus assessment and many more features from within the Maltego interface. Figure 1 shows a simple IP scan result using Sploitego transform.

 Figure 1. Sploitego: IP Scanning

Unlike the original Maltego transforms Sploitego uses locally installed applications to probe the target and generate results. This can be very helpful as now pentesters can leverage the information gained through Maltego transforms and perform advanced fingerprinting on it from the same interface. Sploitego utilizes Canari which is an extensible framework and allows developers to focus on the core data mining logic without getting into the details of XML serialization, debugging, transform installation etc. It utilizes many python libraries to perform its transforms, like Scapy (a networking library with support for various protocols). Sploitego also allows saving the generated result in csv format for later review. It can be downloaded from https://github.com/allfro/Sploitego. All in all Sploitego compliments Maltego by extending its power and elevating it towards a complete reconnaissance tool.

 

Trend Micro OSCE Server and Client Issue Optimization as part of Enterprise End Point Security

Abstract

In this paper, I have discussed various issues pertaining to Trend Micro. Issues and solutions discussed here are for both servers and clients that are running Trend Micro OSCE. Some critical issues are also discussed, they are combined with a definitive solution, for which the knowledge base has failed to provide effective solution. There is also a comparative study discussed at end of the paper which proves that these solutions had given best result.

Description

This paper mainly focuses on Trend Micro’s Corporate anti-virus product and the main intent of this documentation is to trouble shoot issues that have been in existence and some set of solutions are discussed here, meanwhile if the mentioned issues were encountered in the production environment this guide would be helpful to extenuate the issue and make the production environment sanative.

Related Studies

1. Detailed study about Trend Micro OSCE corporate edition.

2. Trend Micro KB article on traditional approaches.

3. A descriptive study on Windows Server 2008 R2 edition and IIS v7.0

Proof

The solutions mentioned in this paper have been tested and all of those are workable solutions. The testing environment was Windows Server 2008 R2 and IIS 7.0.

Conclusion

This documentation has mulled on Trend Micro corporate anti-virus. Henceforth these can be used to solve issues and promote production in a better way. This proves that Trend Micro works perfectly by sanitizing the environment.

Source:

Some contents mentioned in the paper where taken as a reference from Trend Micro Knowledge Base for effective troubleshooting and to furnish what were the traditional approaches that were available till now.

Download the article from the below link,

Trend Micro OSCE Server and Client Issue Optimization as part of Enterprise End Point Security

Malware Issue Optimization in a Production Environment

Abstract

It was all about the work, I was involved where I had to provide solution for issues on malwares, initially the work started with solving all the issues using an anti-virus but the thought provoked me; why can’t there be some other way of solving these problems. So the quest started and initially I had to do a good literature review combined with the research on malwares that affects the PC day to day or more common among users. So with these data I could confront to some solutions, which I wanted to share it with everybody and let them also get benefitted.

Description

The main intent of this document is to provide panacea on “issues or problems” that are caused by Malware (or any infection) without the help of the anti-virus. The motive behind the design of this document is that even a LAY MAN who’s having NO KNOWLEDGE on MALWARE/VIRUS, can use this document to analyze the issue and follow the solution in the document to solve the issue.

Related Studies

1. A peer literature review on various corporate anti-virus with the DAT file size.

2. Detailed research on malwares.

3. Another documentation that ran where to accommodate the most common viruses that are prevailing in the production environment.

Proof

The solutions provided were tested and has rendered desired results. These results were carefully crafted to make it understandable for every user who needs solution for their infection.

Conclusion

This document is designed with behavior of the malware and the solution for it. Also the documentation addresses solution for some issues that are common in the day-to-day life and production environment.

Please drop your comments.

If you require any help you can very well email me or post your issue and I will try to revert at the earliest.

Download: : Malware Issue Optimization in a Production Environment

THC-IPV6 v 1.9

The THC IPV6 ATTACK TOOLKIT (THC-IPV6) is a complete tool set to attack the inherent protocol weaknesses of IPV6 and ICMP6, and includes an easy to use packet factory library

Features:

  • added new tool: detect_sniffer6 (Windows, Linux, *BSD, OS X, …)
  • added new tool: fake_router26 which gives more control on options
  • added new tool: dnsrevenum6 which reverse enumerates the DNS
  • added new tool: inverse_lookup6 which gets the IPv6 addresses of a mac address
  • added new tool: fake_solicitate6 which lets you fake neighbor solicate packets
  • added new tool: address6 converts between ipv6ipv4 and mac addresses
  • added new tool: passive_discovery6 which detects all sending systems and includes DAD detection
  • much more

Download: http://www.thc.org/releases/thc-ipv6-1.9.tar.gz

Bad Behavior has blocked 3243 access attempts in the last 7 days.