Monday, May 20, 2019

DNS security

  • How Does DNS Filtering Work?
DNS filtering – or Domain Name System filtering to give it its full title – is a technique of blocking access to certain websites, webpages, or IP addresses. DNS is what allows easy to remember domain names to be used – such as Wikipedia.com – rather than typing in very difficult to remember IP addresses – such as 198.35.26.96. DNS maps IP addresses to domain names.

With DNS filtering in place, rather than the DNS server returning the IP address if the website exists, the request will be subjected to certain controls. If a particular webpage or IP address is known to be malicious, the request to access the site will be blocked. Instead of connecting to a website, the user will be directed to a local IP address that will display a block page explaining that the site cannot be accessed.

Can DNS Filtering be Bypassed?
Proxy servers and anonymizer sites could be used to mask traffic and bypass the DNS filter unless the chosen solution also blocks access to these anonymizer sites. An end user could also manually change their DNS settings locally unless they have been locked down.
https://www.spamtitan.com/web-filtering/how-does-dns-filtering-work/





  • Open DNS Filtering - Disadvantages You Should Know

When surfing the web, the DNS server of the Internet Service Provider is utilized to determine the IP addresses.
Different DNS servers with a filtering service such as OpenDNS filtering service can be used rather than the DNS server of the ISP.
The OpenDNS filtering service is fast and gives assurance against phishing and different issues frequently experienced when surfing the web

Some of the advantages of utilizing the filtering service of an alternative DNS server are:

Enhances security by blocking access to malicious and risky sites
Keep malware downloads from malicious and risky sites
Keeps your defense up to date to protect your users as threats arise

OpenDNS filtering service is more reliable and generally quicker than your ISP. The OpenDNS filtering service provides access to a site even when the DNS servers of this site are dead. OpenDNS filtering service is connected directly to PhishTank.com, an anti-phishing site.
When blocking a phishing site, the OpenDNS filtering service shows a warning page instead of the fraudulent site.

there are various drawbacks.

The OpenDNS filtering service will know which sites you visit, as the of your entirety DNS requests will go to their servers. The OpenDNS filtering service appears to be open and transparent. It is a question of trust.

The OpenDNS filtering service does not filter the URL, it blocks just the domains and sub-domains and does not block the rest of the URL. The OpenDNS filtering service does not enhance the speed of your connection. OpenDNS filtering service only accelerates the DNS queries

https://cdome.comodo.com/opendns-filtering.php


  • What is DNS Filtering?


How Does DNS Filtering Work?

In order to better understand how DNS attacks happen, it is vital to know how DNS work. To find a particular website, the IP address helps in reaching the particular web server. In the process, the browser consults the system’s hosts file, a text file with the IP addresses of any domain names. When the web address isn’t in the system’s hosts file, the browser will go to the DNS server which may be operated by an ISP, or by an organization like Google or OpenDNS.

How is DNS used by Hackers?
All that a hacker does is find a way to make the resolver report back the wrong IP address. When it is done, anyone from any part of the world trying to access the particular website will be redirected to a bogus website.Similarly, the emails also can be delivered to the wrong destination.

Cache Poisoning
In simple, cache poisoning as the term refers to is placing false information into the cache of a server. Hackers accomplish this by assigning a bogus “reply” with a tricked source IP address to an information request.

How long does the cache remain poisoned?
There is a time limit for the DNS information (TTL) to be active and then it requires to be recovered again from the official server. The TTL for DNS information is defined by the owner of the domain name, however, doing it at the right moment depends on the hacker to perform the malicious activities

DNS Protection
configure it to be as strong as possible against cache poisoning, the potential ways of doing it includes:
➢ instead of UDP port 53 – use a random source port
➢ randomizing the case of the letters of the domain names
➢ randomizing the query ID
➢ maintaining your DNS servers securely

Configuring DNS Filtering
By altering the MX records internally, a single configuration change can be done by which you can deny access to risky sites and secure your network.
https://cdome.comodo.com/blog/what-is-dns-filtering/


  • DNS Web Filtering 4 Myths And Some Truth


DNS filtering provides protection from online threats such as viruses, malware, ransomware, phishing attacks and botnets.
The Domain Name System (DNS) makes it so that we can use the Internet by remembering names, and computers can translate these names into machine-readable IP addresses to transfer information from websites, email servers, and file servers to your web browser or email client.

Myth 1: We don’t need web filtering, we already have endpoint antivirus
antivirus software can only detect known viruses while it’s running
end users are notorious for turning off antivirus and the local firewall on their computers to avoid sluggish performance or install software that they “need” to do their job

the business is liable for how its network is used.
If an end user is serving up pirated movies from your IP address, can your business afford the fine?
If an employee accidentally gets infected with a spam bot, it’s your IP address that will be blacklisted and blocked, and your email that will no longer be delivered.

Myth 2: DNS filtering is complicated
It starts with DNS lookup in just three steps:
    Query: You type a web address into the browser, triggering a DNS query.
    Lookup: The DNS server specified in your network interface configuration (usually provided automatically by your DHCP server) receives the request and looks up the IP address relating to that domain.
    Response: As long as the domain name exists, the corresponding IP address is returned, and your browser then uses that IP address to communicate directly with the web server for that domain (and usually caches it for future reference)
The filter protects your network by only providing lookup requests with a valid IP address for safe websites, but returns a local IP address to deliver a block page for forbidden sites.
DNS logging will show which lookups people have performed, but not which sites they actually visited, nor for how long.

Myth 3: DNS web filtering is easy to bypass
In most cases, simply setting the primary DNS servers as the cloud web filter in your DHCP server (usually this is all in your Internet gateway appliance for a small business – which includes the router, network switch, and a firewall) is good enough to block the majority of web-delivered malware and prevent access to any productivity-killing (Facebook) and bandwidth-gobbling sites (YouTube, Netflix).

They’ll find a proxy service or change their DNS settings locally on their computer if you haven’t locked it down
No web filtering approach is immune to circumvention – both appliance-based and cloud DNS filtering services can be bypassed
It’s time to roll up your sleeves and set some firewall rules on your Internet gateway/router
You can block DNS requests to anything other than your approved DNS service and block all other DNS requests.
If you use an external DNS server, you should allow only port 53/UDP to access the IP addresses of your chosen DNS filtering service servers.
If you have your own, locally hosted, internal DNS server, you should allow only port 53/UDP outbound requests from your internal DNS server's internal IP address to the external IP addresses of the primary and secondary DNS servers that your internal DNS server is configured to use.
local computers query your local DNS server, and only your DNS server queries the web filtering DNS service on the Internet.

Myth 4: Configuring DNS filtering is a lot of work
Most routers and firewalls will allow you to block port 53 – DNS traffic.
By editing your internal MX records, a single configuration change in one place  you can effectively prevent access to risky sites and protect your network.

Key Benefits of DNS Filtering
Block Malware & Malicious Sites
Control Internet Access
Prevent malware downloads from malicious or hacked websites
Keeps your defense up to date with targeted threat analysis and zero day updates to protect your customers as threats arise.

https://www.titanhq.com/blog/4-myths-about-dns-filtering-and-some-truth

  • How to Use OpenDNS on Your Router, PC, Tablet, or Smartphone


Changing Your DNS
You have two configuration options on your home network. You can change the DNS on your router, which is the main connection point to and from the Internet.
This has the advantage of covering everything in an umbrella of protection. This is also its disadvantage because every computer behind the router must then use the same router settings unless you specifically assign a client to use another DNS server.
Another disadvantage is that there’s no way to tell, at least with the free version of OpenDNS, where the traffic is coming from, so if you see a bunch of blocked websites, it could be you, it could be your spouse, it could be your children, or anyone else who comes over and connects to your network.

Preferred Method: Configuring Your Router
Nevertheless, the preferred method to using OpenDNS is to configure your router to direct all DNS request through their servers.

Clearing Your DNS Resolver Cache on Windows Clients
“ipconfig /flushdns”

Clearing Your Browser History
Clearing Internet Explorer’s Cache
Clearing Mozilla Firefox’s Cache
Clearing Google Chrome’s Cache


Alternative Method: Configuring Individual Clients

Changing DNS Servers on Windows Computers
Changing DNS Servers on an Android Device
Changing DNS Servers on an iOS Device

https://www.howtogeek.com/201312/how-to-use-opendns-on-your-router-pc-tablet-or-smartphone/



  • OpenDNS is a free online service that offers an extra layer of safety on the Interne

Technically, the service is DNS resolution
The main defensive computing advantage it provides is protection from bad Web sites, most importantly from phishing scams
You don't have to register to use the service, and there is no software to download or install.
All that's involved is a change to the networking configuration of either your computer or your router. This is a one-time change--OpenDNS requires no ongoing care and feeding.
Should you ever want to stop using the service, simply reverse the configuration change.
Should you ever want to stop using the service, simply reverse the configuration change
https://www.cnet.com/news/opendns-provides-added-safety-for-free/


  • OpenDNS is a company and service that extends the Domain Name System (DNS) by adding features such as phishing protection and optional content filtering in addition to DNS lookup, if its DNS servers are used.

The company hosts a cloud computing security product suite, Umbrella, designed to protect enterprise customers from malware, botnets, phishing, and targeted online attacks.

DNS services for personal home use
On May 13, 2007, OpenDNS launched a domain-blocking service to block web sites or non-Web servers visited based upon categories, allowing control over the type of sites that may be accessed
In 2008, OpenDNS changed from a closed list of blocked domains to a community-driven list allowing subscribers to suggest sites for blocking; if enough subscribers (the number has not been disclosed) concur with the categorization of the site it is added to the appropriate category for blocking
Other free, built-in features include a phishing filter. OpenDNS also run a service called PhishTank for users to submit and review suspected phishing sites
OpenDNS supports the DNSCrypt protocol, which authenticates DNS traffic between the user's computer and the name servers
https://en.wikipedia.org/wiki/OpenDNS
  • Dynamic Domain Name System

DNS is static so the IP address associated with it should be static. If you have a dynamic IP, the computer changes the IP address frequently. So by accessing the Domain Name, you will not be able to reach the desired computer. Dynamic DNS is used to in order to avoid this situation.
http://www.techcuriosity.com/tutorials/networking/difference_between_DNS_and_DDNS.php
Dynamic Detection of Malicious DDNS

  • In the past, you needed a static IP address, or an IP address that never changed, in order to manage a domain name. This is a problem because most Internet users have a dynamic IP address, or an IP address that can change (sometimes frequently). 

http://www.serv-u.com/kb/1408/how-does-dynamic-dns-work


  •  it can be quite difficult to set up and is a lot of hassle if you just want people to connect to your home web server or gaming server so rather than go to the trouble, there are many companies that will do this for you for free by offering a service known as "Dynamic DNS". This works by running a small program on your home machine that will discover your IP Address every so often or even every time you dial up and will then send it to the company that maintains the Dynamic DNS. Once this information has been received from your computer, the company will then update automatically update their DNS servers on the spot so that any changes to your IP Address are immediately made known to anyone trying to connect to you.

 http://whatismyipaddress.com/dynamic-dns
  • Multicast DNS is a way of using familiar DNS programming interfaces, packet formats and operating semantics, in a small network where no conventional DNS server has been installed.

http://www.multicastdns.org/


  • DNS-SD uses Multicast DNS (MDNS) which works by sending DNS packets over UDP to a certain multicast address. All mdns-capable hosts in the network also listen to this address. It uses UDP so, it's quite low overhead. Also, the clients are designed in a way that the amount of chatter on the network is kept to a minimum, by using extensive caching.


Service discovery is a two step process. The first step is finding the names of all hosts providing a certain service (e.g. printing). This will not yet give you the ip address, instead it gives you the mdns name (ending with .local). This is because the ip could possibly change, whereas the name will not.

The second step in service discovery is to resolve the .local name of the host over mdns. You ask via multicast who foo.local is, foo.local will see that packet, and respond via broadcast with its ip address, port number and other information.

https://stackoverflow.com/questions/11835782/how-exactly-does-mdns-resolve-addresses



  • Bonjour is Apple's implementation of zero-configuration networking (zeroconf), a group of technologies that includes service discovery, address assignment, and hostname resolution. Bonjour locates devices such as printers, other computers, and the services that those devices offer on a local network using multicast Domain Name System (mDNS) service records.

https://en.wikipedia.org/wiki/Bonjour_%28software%29


  • Zero-configuration networking (zeroconf) is a set of technologies that automatically creates a usable computer network based on the Internet Protocol Suite (TCP/IP) when computers or network peripherals are interconnected. It does not require manual operator intervention or special configuration servers.


Zeroconf is built on three core technologies: assignment of numeric network addresses for networked devices, automatic distribution and resolution of computer hostnames, and automatic location of network services, such as printing devices. Without zeroconf, a network administrator must set up services, such as Dynamic Host Configuration Protocol (DHCP) and Domain Name System (DNS), or configure each computer's network settings manually.
https://en.wikipedia.org/wiki/Zero-configuration_networking
mDNS can be abused to amplify the traffic of DDoS attack
  • What is a DNS leak and why should I care?
even when connected to the anonymity network, the operating system will continue to use its default DNS servers instead of the anonymous DNS servers assigned to your computer by the anonymity network. DNS leaks are a major privacy threat since the anonymity network may be providing a false sense of security while private data is leaking.
https://dnsleaktest.com/what-is-a-dns-leak.html


  • Unfortunately for VPN users, WebRTC allows a website (or other WebRTC service) to directly detect your host machine’s true IP address, regardless of whether you are using a proxy server or VPN
Given that WebRTC is potentially useful, it is something of a shame that the only way to prevent it from leaking your true IP address is to disable WebRTC in your bowser completely (although the Statutory add-on does allow you whitelist individual websites.)
The WebRTC issue only affects the Firefox, Chrome, and Opera browsers (not Internet Explorer or Safari etc., as these do not include WebRTC functionality.)
https://www.bestvpn.com/blog/31750/a-complete-guide-to-ip-leaks/


  • You might think your anonymity service protects you completely, but don’t get too cocky. If any trackable data is stored on your computer, or any traffic not completely routed through the anonymity network, you could be giving yourself away.
Just one leak is enough to link you back to your real IP and your real identity.
https://www.doileak.com/

  • What is a "WebRTC leaks"?

WebRTC implement STUN (Session Traversal Utilities for Nat), a protocol that allows to discover the public IP address. To disable it:

    Mozilla Firefox: Type "about:config” in the address bar. Scroll down to “media.peerconnection.enabled”, double click to set it to false.
    Google Chrome: Install Google official extension WebRTC Network Limiter.

What is a "DNS leaks"?

In this context, with "DNS leak" we mean an unencrypted DNS query sent by your system OUTSIDE the established VPN tunnel.
Why my system suffers DNS leaks?

In brief: Windows lacks the concept of global DNS. Each network interface can have its own DNS. Under various circumstances, the system process svchost.exe will send out DNS queries without respecting the routing table and the default gateway of the VPN tunnel, causing the leak.
Should I be worried for a DNS leak?

If you don't want that your ISP, and anybody with the ability to monitor your line, knows the names your system tries to resolve (so the web sites you visit etc.) you must prevent your system to leak DNS. If you feel that you're living in a human rights hostile country, or in any way the above mentioned knowledge may harm you, you should act immediately to stop DNS leaks.
How Does Torrent Detection Work?

To detect data from your torrent client we provide a magnet link to a fake file. The magnet contains an http url of a controlled by us tracker which archives the information coming from the torrent client.
https://ipleak.net/


  • WebRTC (Web Real-Time Communication)
WebRTC (Web Real-Time Communication) is an API definition drafted by the World Wide Web Consortium (W3C) that supports browser-to-browser applications for voice calling, video calling, and P2P file sharing without the need of either internal or external plugins.
https://en.wikipedia.org/wiki/WebRTC

  • One of the primary reasons to use a VPN is to hide your true IP address. When using a VPN, all your internet traffic is encrypted and sent to a VPN server run by your VPN provider, before exiting to the internet.This means that outside observers can only see the IP address of the VPN server, and not your true IP address. The only way for them to discover your true IP address, therefore, is to convince your VPN provider to hand it over to them
https://www.bestvpn.com/blog/31750/a-complete-guide-to-ip-leaks/

  • WebRTC
WebRTC is a free, open project that enables web browsers with Real-Time Communications (RTC) capabilities via simple JavaScript APIs.
To enable rich, high quality, RTC applications to be developed in the browser via simple JavaScript APIs and HTML5.
http://www.webrtc.org/

  • DNS spoofing

DNS spoofing (or DNS cache poisoning) is a computer hacking attack, whereby data is introduced into a Domain Name System (DNS) name server's cache database, causing the name server to return an incorrect IP address, diverting traffic to another computer (often the attacker's).

DNS is a hierarchical naming system built on a distributed database for resources connected to the Internet.
DNS maps domain names to their corresponding Internet Protocol (IP) addresse
DNS has no authentication mechanisms included by default
The lack of authentication increases the risk of falsified DNSinformation being stored on a DNS Resolver by entities with no authority to do so.
These activities are known as DNS spoofing and DNS cache poisoning.

DNS spoofing and DNS cache poisoning can permit an adversary to map the internal network of an organisation based on queries from the internal DNS Resolver to upstream DNS Resolvers. DNS cache poisoning can subvert client connections to provide false information, facilitating installation of malicious code or the extraction of sensitive information

DNS Resolvers are typically configured to query upstream counterparts if they do not have a DNS record cached for the requested domain name.
This is known as recursion, or caching. Recursion improves response times and performance by caching replies similar to theway in which history is cached by a web browser.
Entries will remain in a DNS Resolver’s cache depending on the time to live (TTL) value in the returned record.

DNS spoofing
DNS cache poisoning
DNS cache poisoning with flooding

Mitigation strategies

Separate authoritative and recursive DNS Resolvers
Limit zone transfers

Randomise source ports and transaction IdentifiersDNS Caching Resolvers are used by internal clients to resolve external domains. They should use random source ports and random transaction IDs to reduce the likelihood of an adversary successfully guessing and faking a response designed to poison the cache of a DNS Resolver.Avoid using routers, firewalls and other gateway devices that perform Network Address Translation (NAT), or more specifically, Port Address Translation (PAT) on DNS traffic. PAT devices often rewrite source ports to track connection state, thus negating the effect of any randomisation implemented by DNS.

https://www.cyber.gov.au/sites/default/files/2019-05/PROTECT%20-%20Domain%20Name%20System%20Security%20%28April%202019%29.pdf

  • Firewalls

Let's begin at the most prevalent security system: your firewall. All firewalls should let you define rules to prevent IP spoofing. Include a rule to deny DNS queries from IP addresses outside your allocated numbers space to prevent your name resolver from being exploited as an open reflector in DDoS attacks.
Enable inspection of DNS traffic for suspicious byte patterns or anomalous DNS traffic to block name server software exploit attacks.

Intrusion detection systems
Whether you use Snort, Suricata, or OSSEC, you can compose rules to report DNS requests from unauthorized clients. You can also compose rules to count or report NXDOMAIN responses, responses containing resource records with short TTLs, DNS queries made using TCP, DNS queries to nonstandard ports, suspiciously large DNS responses

Traffic analyzers
Capture and filter DNS traffic between your clients and your resolver, and save to a PCAP file. Create scripts to search the PCAP for the specific suspicious activities you are investigating

Passive DNS replication
This involves using sensors at resolvers to create a database that contains every DNS transaction (query/response) through a given resolver or set of resolvers. Including passive DNS data in your analysis can be instrumental in identifying malware domains, especially in cases where the malware uses algorithmically generated domain names (DGAs).

Logging at your resolver
The logs of your local resolvers are a last and perhaps most obvious data source for investigating DNS traffic
https://www.darkreading.com/analytics/threat-intelligence/5-ways-to-monitor-dns-traffic-for-security-threats/a/d-id/1315868

  • A logical next step towards a new, more secure Internet is to remove any central points of trust from the core of the Internet. Following the trust-to-trust principle, DNS and PKI functionality for end-hosts should exist near the edges of the network and not in the core.

Let’s imagine a server that provides DNS and PKI functionality and runs in a (local) network you trust. This server needs two things:

    Decentralized Consensus: Ability to reach consensus with the rest of the network about the global state of the DNS and PKI system.
    Tamper Proofing: Mechanism to ensure that data records in the DNS and PKI system cannot be easily tampered with.
Blockchains are great at providing both these properties; nodes can independently reach consensus and tampering with data records requires an enormous amount of compute power. It’s not surprising that blockchains have been used to implement decentralized DNS and PKI systems
https://medium.com/@muneeb/next-steps-towards-a-secure-internet-a057217acebb


  • The hosts file is like your speed dial directory for the internet.


Where is the hosts file located?
The actual location of the hosts file is stored in the registry under the key, HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters, in the value, DataBasePath.
The hosts file does not have an extension, but it can be viewed by opening it with Notepad (or something similar). To replace or alter the hosts file, you will need Administrator privileges, but every user has “Read” permissions.
Before resolving an internet request (to look up the IP that belongs to a domain name), Windows looks in the hosts file to see if there is a predefined entry for that domain name (the speed dial, remember?).

These predefined entries in the hosts file can exist for several reasons:
Blocking: some people (who are oftentimes unaware that hosts files can be installed by their security programs) use them to block unwanted sites by connecting malicious or otherwise unwanted domains to the IPs 127.0.0.1 or 0.0.0.0 that both point at the requesting system itself, so in effect there will be no outgoing traffic for these requests.
Pointing: for example, system administrators use the hosts file to map intranet addresses.

Malware uses it for their own reasons, where the two most common ones are:
To block detection by security software: for example, by blocking the traffic to all the download or update servers of the most well-known security vendors.
To redirect traffic to servers of their choice: for example, by intercepting traffic to advertisement servers and replacing the advertisements with their own.

https://blog.malwarebytes.com/cybercrime/2016/09/hosts-file-hijacks/

What is a HOSTS file?
Each time you try to connect to internet address, computer has to determine its numerical address in the web. This is usually done using DNS (Domain Name System) servers. However, one could change the address of any site for oneself in computer by having it stored in Hosts file.  Simply put, the HOSTS allows skipping DNS  all the IP addresses of the websites you visit for increased internet
connectivity and speed, as these addresses are kept in the HOSTS file, which is
actually checked before your system queries the DNS servers.

For example, you have the BBC website cached in your HOSTS file: its entry would be displayed as 212.58.224.131 www.bbc.co.uk.Therefore, it would be easily reachable and it would
load faster than websites that are not cached in your HOSTS file.

That said you could make a list of trusted and most visited websites in this file for increased loading speed. OR, you could BLOCK unwanted sites by using the same HOSTS file and adding these websites and changing their IP addresses to that of your own computer ( 127.0.0.1 )

https://www.2-viruses.com/blocking-spyware-using-the-hosts-file


  • There is another way to resolve domain names without using the Domain Name System, and that is by using your HOSTS file. Almost every operating system that communicates via TCP/IP, the standard of communication on the Internet, has a file called the HOSTS file. This file allows you to create mappings between domain names and IP addresses.


The HOSTS file is a text file that contains IP addresses separated by at least once space and then a domain name, with each entry on its own line. For example, imaging that we wanted to make it so that if you typed in www.google.com, instead of going to Google we would go to www.yahoo.com. In order to do this you would need to find out one of the IP addresses of Yahoo and map www.google.com to that IP address.

One of the IP addresses for Yahoo is 216.109.118.69. If we wanted to map Google to that IP address we would add an entry into our HOSTS file as follows:

216.109.118.69 www.google.com

Network Testing - I manage a large Internet Data center and many times we need to set up test machines or set up development servers for our customers applications. When connecting to these development or test machines, you can use the HOSTS file to test these machines as if they were the real thing and not a development server. As an example, lets say that you had a domain name for a development computer called development.mydomain.com. When testing this server you want to make sure it operates correctly if people reference it as the true web server domain name, www.mydomain.com. Since if you change www.mydomain.com in the DNS Server to point to the development server everyone on the Internet would connect to that server, instead of the real production server. This is where the HOSTS file comes in. You just need to add an entry into your HOSTS file that maps www.mydomain.com to the IP address of the development server on the computers that you will be testing with, so that the change is local to the testing machines and not the entire Internet. Now when you connect to www.mydomain.com from your computer with the modified HOSTS file you are really connecting to the development machine, but it appears to the applications that you are using that you are connecting to www.mydomain.com

https://www.bleepingcomputer.com/tutorials/hosts-files-explained/



  • 7 Ways to Use Hosts File on Your Computer


1. Editing Hosts File to Block a website

To block any site from hosts file, you only need to map the hostname to the localhost IP (127.0.0.1) or a full-zero’s IP address (0.0.0.0) followed by the sites domain name.
For instance, to block users from access Twitter, add one of the following entries at the end of the hosts file:
127.0.0.1 twitter.com www.twitter.com
0.0.0.0 twitter.com www.twitter.com

2. Re-directing a Website Using Hosts File

You can also redirect the website to a particular domain. For example, you may edit the hosts file such that whenever a user tries to access Twitter, they are redirected to the company’s site or any other website.
First, you need to know the IP for your target website.
Then use the hosts file to map the IP to Twitter.com. To redirect Twitter to Google.com IP address 216.58.223.110, enter “216.58.223.110 www.twitter.com twitter.com” at the end of the hosts file and save.

3. Create Shortcuts for Websites or Intranet Services
You can also modify Windows hosts file to create shortcuts for public or internal sites or web services.
For instance, if you have a server with an IP, 192.168.1.10 on your network, it will be easier to remember a descriptive name than the IP address.
To create a shortcut for the device, you only need to map its IP to your preferred name with a .com extension.
Add “192.168.1.10 mydevice.com” and save the file.

4. Testing Network / Web Servers
When you are running a web development server on your local network, it will be safe to test its functionality before publishing it live.
For instance, if you are running a web server (IP: 192.168.0.11), hosting two sites mysite1.com and mysite2.com, you can add the following entries to the hosts file:
192.168.0.11 mysite1.com
192.168.0.11 mysite2.com

5. Content Filtering and Ads Blocking
You can block Ad networks or unwanted sites by mapping the site to the localhost IP (127.0.0.1).
This will point back to your own PC blocking access to known malicious or Ads sites.

6. Adding Websites to Hosts File to Improve Browsing Speed
Add a site to the hosts file can increase the browsing speed. This is simply because the computer doesn’t need to query DNS server for IP and waste time waiting for a response.

7. Preventing Malicious Attacks
You can prevent such unauthorized edits by changing the properties for the “hosts” file.
Under the “General” tab, tick the “Read-only” checkbox to disable editing.

https://www.webnots.com/7-ways-to-use-hosts-file-on-your-computer/

  • Learning About DNS Record Types


Name Servers
When you bought your domain name, your registrar probably configured default DNS records for you and provided the Name Servers (NS) for them. You need to have a Name Server (which are often mirrored in pairs and triplets for redundancy, e.g. ns1.yourregistrarserver.com, ns2.yourregistrarserver.com) to tell the Internet's DNS directory the numeric IP addresses of your web servers and services.

A Records
If a web user types in jeffreifman.com, the request will be passed off to a directory which will look for a DNS record that corresponds to my root domain. By root, I mean no prefix, no www, i.e. no sub-domain, just http://jeffreifman.com. For example, the root-level A record of your domain might point to 107.164.32.96. That will tell the Internet to which IP address to send your browsing request.

Subdomain Records
You can also configure A records for a variety of sub-domains. For example, if you want www.yourwebsite.com to go to the same address, you can set up an identical A record for the sub-domain www, i.e. the root domain, and the www domain would have identical IP addresses.

Wildcard Entries
DNS records also allow wildcard entries (using an asterisk *) that make it easy to route all sub-domain traffic to one IP address.

Inbound Routing on Your Server
When traffic arrives at your server from the DNS mapping system, how your server handles it must be configured there

CNAME Records
CNAMEs are essentially domain and sub-domain text aliases to map traffic to. For example, if you've ever set up a blog through a service such as WordPress or Tumblr, they may ask you to map your domain name to a CNAME rather than with an A record to an IP address

MX Records
MX records tell the DNS system where to send all that email you receive.

Changing Email Providers and Moving Email
MX records only instruct the DNS system where to route today's email—your existing email is stored in the cloud databases of your current email provider. If you wish to move all of your existing messages, you'll need to rely on their tools or your mail client software. And, of course, you'll also have to update your MX records to your new provider's settings.

TXT Records
TXT records allow the domain owner to authenticate themselves by posting secret codes within their DNS. When you register with Google Webmaster Tools, it will ask you to verify that you own the domain by doing just that.

AAAA Records
If you decide to support IPv6 addressing, you'll need to configure an AAAA record with its larger addressing scheme:
https://code.tutsplus.com/tutorials/an-introduction-to-learning-and-using-dns-records--cms-24704


  • What is Cisco umbrella DNS?

Cisco Umbrella Malware and Content Filtering through DNS. ... Cisco Umbrella offers security protection for both Home and Enterprise users through filtering DNS requests. The job of the DNS servers are to translate website URLs to their respective IP address.
The company hosts a cloud computing security product suite, Umbrella, designed to protect enterprise customers from malware, botnets, phishing, and targeted online attacks. The OpenDNS Global Network processes an estimated 100 billion DNS queries daily from 85 million users through 25 data centers worldwide.


  • What is umbrella OpenDNS?

The company hosts a cloud computing security product suite, Umbrella, designed to protect enterprise customers from malware, botnets, phishing, and targeted online attacks. The OpenDNS Global Network processes an estimated 100 billion DNS queries daily from 85 million users through 25 data centers worldwide.


  • Which is better OpenDNS or Google DNS?

Google also has a public DNS (8.8.8.8 and 8.8.4.4 for IPv4 service, and 2001:4860:4860::8888 and 2001:4860:4860::8844 for IPv6 access), but Cloudflare is faster than Google, and faster than OpenDNS (part of Cisco) and Quad9.

  • DNS or other Services works on both TCP and UDP

Two protocols are different from each other. TCP is a connection-oriented protocol and it requires data to be consistent at the destination and UDP is connection-less protocol and doesn't require data to be consistent or don't need a connection to be established with host for consistency of data.

UDP packets are smaller in size. UDP packets can't be greater than 512 bytes. So any application needs data to be transferred greater than 512 bytes require TCP in place. For example, DNS uses both TCP and UDP for valid reasons described below. UDP messages aren't larger than 512 Bytes and are truncated when greater than this size. DNS uses TCP for Zone transfer and UDP for name, and queries either regular (primary) or reverse. UDP can be used to exchange small information whereas TCP must be used to exchange information larger than 512 bytes. If a client doesn't get response from DNS, it must retransmit the data using TCP after 3-5 seconds of interval.

There should be consistency in DNS Zone database. To make this, DNS always transfers Zone data using TCP because TCP is reliable and make sure zone data is consistent by transferring the full zone to other DNS servers who has requested the data.
https://docs.microsoft.com/en-us/troubleshoot/windows-server/networking/dns-works-on-tcp-and-udp








URL categorization


  • What is URL filtering?


URL filtering is used to categorize websites on the internet in order to allow or block access to web users based on their credibility and reputation.
Businesses utilize URL filtering software to prevent the stealing of confidential information and to eliminate Internet distractions at the workplace.
https://www.netsweeper.com/products/url-filtering-categorization/


  • URL categorization API


The domain categorization API supports the industry standard IAB contextual taxonomy, allowing you to retrieve categories for an entire website, IP address, or a specific URL. You can accurately identify the main topics of content with more than dozens of top-level categories which can be used for services such as targeted advertising, content filtering, and security devices.
https://www.webshrinker.com/apis/

Wednesday, April 24, 2019

Hyperscaler


  • The term “hyperscale” refers to a computer archit1ecture’s ability to scale in order to respond to increasing demand.

Computers rely on resources within a given node or set of nodes. Scaling some part of our computer architecture typically means increasing computing ability, memory, networking infrastructure, or storage resources.
Hyperscale is not just the ability to scale, but the ability to scale hugely and quickly.
The goal of scaling is to continue building a robust system, whether that system revolves around the cloud, big data, or distributed storage, or, as is increasingly likely these days, a combination of all three
https://www.bmc.com/blogs/hyperscale-data-center/


  • A hyperscale cloud data center looks different from an enterprise data center, or even a large hosting provider. 

Here are some of the significant differences to think about if you’re considering a hybrid cloud that involves you running Azure Stack or a hyperconverged infrastructure:
https://www.computerworld.com/article/3138432/inside-a-hyperscale-data-center-how-different-is-it.html

  • Hyperscaler Storage

Enterprise hyperscaled storage is one of the more recent storage trends SNIA is focusing on to advance storage and enable the future of IT. SNIA’s research indicates that large enterprises, in addition to utilizing cloud storage, are adopting methods from Hyperscalers such as Amazon, Facebook, Google and Microsoft Azure to build their own storage systems using software defined storage (SDS) and best-in-class commodity components, assembled in racks.
https://www.snia.org/hyperscaler


  • Software-defined: Infrastructure where the functionality is completely decoupled from the underlying hardware and is both extensible and programmatic.

Commodity-based: Infrastructure built atop commodity or industry-standard infrastructure, usually an x86 rack-mount or blade server.
Converged: A scale-out architecture where server, storage, network, and virtualization/containerization components are tied together as a pretested, pre-integrated solution.
Hyperconverged: A scale-out architecture that takes converged infrastructure one step further by combining software-defined components atop commodity hardware, packaged as a single solution -- often a single appliance
Hyperscale: A scale-out architecture that is also software-defined and commodity-based, but where the server, storage, network, and virtualization/containerization resources remain separate. Each component is distinct and can be independently scaled.
https://www.infoworld.com/article/3040038/what-hyperscale-storage-really-means.html
  • Today’s hardware-defined infrastructure

Software-defined infrastructure: the first step toward hyperscale

Hyperscale data-center-driven use cases
Individual component replacement
Flexible host setup
Dynamically optimized data centers
https://www.ericsson.com/en/white-papers/hyperscale-cloud--reimagining-data-centers-from-hardware-to-applications


  • Veritas HyperScale Architecture

Veritas HyperScale for containers is based on a unique architecture to provide resilient storage with predictable performance. The predictability is provided by internally separating the storage for secondary operations from that required for primary operations. HyperScale employs an architecture with services segregated into two horizontal planes; the top plane (Compute Plane) responsible for active/primary IO from application containers and the lower plane (Data Plane) responsible for version(snapshot) management of volumes and the usage of these snapshots for secondary operations like backup, analytics
https://vox.veritas.com/t5/Software-Defined-Storage/Predictable-performance-with-containerized-applications/ba-p/829920

  • We are very excited to introduce DirectFlash™ Fabric which extends the DirectFlashTM family outside of the array and into the fabrics via RDMA over converged Ethernet (also known as RoCEv2).

DirectFlash Fabric is generally available as of January 16, 2019 with a non-disruptive firmware upgrade and installation of a RDMA capable NIC in the storage controllers.
At hyperscale, efficiency is a requirement.  In the beginning, there was “web-scale”.  This was the simple and easy way to scale.  Our hyper-converged friends are still in this early evolution.  As you saw with the Stanford Flash Storage Disaggregation study, this type of architecture was immature and equates to high levels of inefficiency at scale.  To enable independant scale of compute and storage many hyperscale environments went to “rack-scale disaggregation.”
https://blog.purestorage.com/directflash-fabric-continuation-of-pures-nvme-innovation/

Atlantis USX (Unified Software-defined Storage) is a software-defined storage solution (100% software) that delivers the performance of an all-flash storage array at half the cost of traditional SAN or NAS.
https://vinfrastructure.it/2015/05/atlantis-hyperscale-products/


  •     Choose hyperscale when… your organization has 5,000 employees or more, more than 500 terabytes of data, more than 500 applications, or more than 1,000 VMs.

    Choose hyperconverged when… you’re below these watermark numbers, have five or fewer staff managing your virtual infrastructure, or you’re in a remote or branch office.
https://www.enterpriseai.news/2016/11/14/demystifying-hyperconverged-hyperscale-storage/

power analysis


  • In cryptography, power analysis is a form of side channel attack in which the attacker studies the power consumption of a cryptographic hardware device (such as a smart card, tamper-resistant "black box", or integrated circuit). The attack can non-invasively extract cryptographic keys and other secret information from the device.


Simple power analysis (SPA) involves visually interpreting power traces, or graphs of electrical activity over time.
Differential power analysis (DPA) is a more advanced form of power analysis, which can allow an attacker to compute the intermediate values within cryptographic computations through statistical analysis of data collected from multiple cryptographic operations
https://en.wikipedia.org/wiki/Power_analysis


  • Using this information, the DPA attack uses the following steps:


    Use the current/previous plaintexts and ciphertexts to calculate four different possible AES inputs (the inputs for ECB, CBC, CFB, and OFB modes)
    For each of these calculated inputs, use one bit of the input to split the traces into two groups
    Calculate an average trace for each group and subtract them to get four differential traces
    Look at the differences to decide which mode is most likely:
        If one of the differential traces shows a large spike, the target is probably using that mode
        If none of the differential traces has a large spike, the target is probably using CTR mode
https://wiki.newae.com/Investigating_Block_Cipher_Modes_with_DPA


Saturday, April 20, 2019

Endpoint Detection and Response(EDR)

  • The features that most EDR solutions have include:


    The ability to detect and prevent hidden exploit processes that are more complex than a simple signature or pattern and evade traditional AV
    Threat intelligence
    Visibility throughout endpoints, including applications, processes and communications, to detect malicious activities and simplify security incident response
    Automation of alerts, as well as defensive responses such as turning off specific processes when an attack is detected
    Forensic capabilities, because once an attacker is inside, you need the ability to take a deep dive into their activities so you can understand their movements and minimize the impact of the breach
    Data collection to build a repository used for analytics
https://www.esecurityplanet.com/products/top-endpoint-detection-response-solutions.html


  • Let’s Define Endpoint Detection and Response (EDR)

Endpoint detection and response solutions collect, record, and store large volumes of data from endpoint activities to provide security professionals with the comprehensive visibility they need to detect, investigate, and mitigate advanced cyber threats.
Traditional antivirus solutions, as well as other, more-pointed solutions, provide enterprises with preventative endpoint protection, which means they react to new files entering a system and, if deemed malicious, automatically stop them from running. Despite this, attackers are still able to penetrate endpoints. This is because they use innovative techniques that stealthily compromise systems without triggering these defenses.
Endpoint detection and response, or EDR, solutions provide a different capability to the security stack. With EDR in place, security teams can continuously collect, record, and store endpoint data, providing them with surveillance-like visibility they can use to investigate a past incident or to proactively hunt for threats in their environment.

Where Does AV Stop... And EDR Start?
NGAV solutions can prevent known and unknown malware attacks, but comprehensive security programs need more power when they want to go after the undetected, persistent campaigns and attacks that act slowly and purposefully to evade automated defenses.
One of the most important benefits that EDR brings to a security team is visibility, which, when supported by the power of the cloud, can store large masses of data which is aggregated, processed and analyzed rapidly. With this intelligence, EDR solutions can zero in on behaviors that automated defenses may have missed, and supply greater visibility (and the ability to intervene) into suspicious activities that have not yet developed into full-blown attacks.
However, the best endpoint security scenario brings NGAV and EDR solutions together in a single integrated solution that leverages a single agent to provide the most secure approach possible.

https://www.carbonblack.com/resources/definitions/what-is-endpoint-detection-and-response/


  • WHAT IS ENDPOINT DETECTION AND RESPONSE?

“the tools primarily focused on detecting and investigating suspicious activities (and traces of such) other problems on hosts/endpoints.”
HOW ENDPOINT DETECTION AND RESPONSE WORKS
Endpoint detection and response tools work by monitoring endpoint and network events and recording the information in a central database where further analysis, detection, investigation, reporting, and alerting take place. A software agent installed on host systems provides the foundation for event monitoring and reporting.
https://digitalguardian.com/resources/data-security-knowledge-base/endpoint-detection-and-response-edr


  • The difference between SIEM and EDR


an EDR is used to determine if malware (APTs, advanced persistent threats) has been installed on an endpoint device (detect) and find ways to reply to this kind of threat (response).
Often, EDR solutions are using agents installed on such an endpoint to collect data from many different kind of data sources directly on the endpoint and store them in a central database.
data from the following sources:
ARP
DNS
Sockets
Registry
Memory dumps
System calls
IP addresses
Hardware types

An EDR is seen complimentary to traditional means of protection like signature-based tools or a SIEM.
They all provide dashboards or reports and data analysis is performed.

SIEM
A SIEM is used to provide a single central place for storing and analyzing data coming from many different log sources.
It is possible to understand many different use-cases, which do not rely on just one type of system, but on many different log sources such as firewalls, servers, IPS, proxies, etc. A SIEM supports a multitude of different platforms and can be used for advanced correlation, log management, and forensics

Summary
A SIEM can be used to collect data from many different types of log sources and do advanced correlation, log management, or forensics. There is no limit regarding supported platforms or the type of use case in question. An EDR tool is considered to be complimentary to a SIEM tool and many EDR vendors try to integrate into a SIEM. From a SIEM point-of-view an EDR is considered to be another log source, which can provide valuable information to a SIEM.

https://www.logpoint.com/en/blog/the-difference-between-siem-and-edr/
  • SIEM vs EDR: Which One Does Your Business Need?

What is SIEM?
SIEM refers to Security Information and Event Management. It provides log management and security event correlation, both of which offers more visibility into enterprise IT environments. In fact, SIEM places a great emphasis on its log capabilities.

What is EDR?
EDR functions as an extension of next-generation endpoint security.
Accordingly, EDR solutions record and store behaviors on enterprise endpoints, analyze that data for suspicious behaviors and block malicious activity. Moreover, these solutions can provide contextual information on suspicious behavior and provide remediation suggestions.
EDR can help your enterprise detect cyber attacks which slipped past your digital perimeter security. Also, it offers granular visibility, threat investigations, and detection of fileless malware and ransomware. Critically, it too can provide security alerts for investigations.

SIEM vs EDR
EDR draws from endpoint data sources as one might expect from an endpoint security capability
Its design lends itself to endpoint prevention, endpoint detection, and analysis.
EDR typically doesn’t need to deal with encryption issues in its analyses. Usually, these solutions come with out-of-the-box capabilities and pre-built dashboards and workflows.
EDR remains heavily tied to the endpoint rather than the network as a whole

SIEM draws from unlimited data sources; the only constraints come for the correlation rules placed on it by enterprises themselves. Thus SIEM allows for security analysis and compliance fulfillment much more readily. It also provides data contextualization.
SIEM can run into issues with encryption.
these solutions tend to focus heavily on detection over prevention
Without logged data, SIEM can’t function, which can create new challenges for underprepared enterprises

both SIEM and EDR provide security alerts. Therefore, both can run into similar problems concerning false positives and alert bombardments overwhelming security teams.

https://solutionsreview.com/endpoint-security/siem-vs-edr-which-one-does-your-business-need/


  • What is Endpoint Detection and Response?

endpoint detection and response solutions record system activities and events taking place on endpoints and provide security teams with the visibility they need to uncover incidents that would otherwise remain invisible

What is the difference between EDR and Antivirus? Antivirus is the prevention component of endpoint security, which aims to stop threats from entering a network. When threats slip past an antivirus, EDR detects that activity and allows teams to contain the adversary before they can move laterally in the network

EDR Security Capabilities
    Incident data search and investigation
    Alert triage or suspicious activity validation
    Suspicious activity detection
    Threat hunting or data exploration
    Stopping malicious activity

Choosing an EDR Solution
1. Visibility:
Real-time visibility across all your endpoints allows you to view adversary activities, even as they attempt to breach your environment, and stop them immediately.
2. Threat Database:
Effective EDR requires massive amounts of telemetry collected from endpoints and enriched with context so it can be mined for signs of attack with a variety of analytic techniques.
3. Behavioral Protection:
Relying solely on signature-based methods or indicators of compromise (IOCs) lead to the “silent failure” that allows data breaches to occur. Effective endpoint detection and response requires behavioral approaches that search for indicators of attack (IOAs), so you are alerted of suspicious activities before a compromise can occur.
4. Insight and Intelligence:
An endpoint detection and response solution that integrates threat intelligence can provide context, including details on the attributed adversary that is attacking you or other information about the attack.
5. Fast Response:
EDR that enables a fast and accurate response to incidents can stop an attack before it becomes a breach and allow your organization to get back to business quickly.
6. Cloud-based Solution:
Having a cloud-based endpoint detection and response solution is the only way to ensure zero impact on endpoints, while making sure capabilities such as search, analysis and investigation can be done accurately and in real time

How EDR Works?
The solution lies in having continuous and comprehensive real-time visibility into what is happening on your endpoints and the ability to apply behavioral analysis and actionable intelligence to stop an incident from turning into a breach.

Integrates With Threat Intelligence
Security Operation Centers (SOCs) and security analysts receive a detailed narrative that specifies the “who, why and what” of the event — empowering organizations to be better prepared to protect itself.

Provides Real-Time and Historical Visibility
This gives security teams the useful information they need, including:

    local and external addresses to which the host is connected
    all the user accounts that have logged in, both directly and remotely
    a summary of changes to ASP keys, executables and administrative tool usage
    process executions
    both summary and detailed process-level network activity, including DNS requests, connections, and open ports
    archive file creation, including RAR and ZIPS
    removable media usage

Real Time Response includes two sets of built-in commands you can execute during investigations to accelerate remediation.

Information collectors allow security teams to immediately understand the risk and scope of a threat by enabling tasks such as:

    Explore the file system and extract files
    List running processes
    Extract Windows event log
    Query Windows registry
    List current network connections and configuration
    Extract process memory
    Calculate file hashes
    Collect environment variables
    Collect additional desired information using PowerShell or other tools

Remediation actions enable teams to take action to contain or remediate a threat with speed and decisiveness including:

    Delete a file
    Kill a process
    Delete or modify Windows registry key or value
    Put a file
    Run a script or an executable file
    Encrypt a file
    Restart/Shutdown

Why is EDR Important?
Reason #1: Prevention alone can’t ensure 100 percent protection
Reason #2: Adversaries can be inside your network for weeks and return at will
Reason #3: Organizations lack the visibility needed to effectively monitor endpoints
Reason #4: Access to actionable intelligence is needed to respond to an incident
Reason #5: Having the data is only part of the solution
Reason #6: Remediation can be protracted and costly

https://www.crowdstrike.com/epp-101/what-is-endpoint-detection-and-response-edr/

  • Endpoint Detection and Response: Threat Hunting and Incident Response for Hybrid Deployments

VMware Carbon Black EDR initially is an incident response and threat hunting solution designed for security operations center (SOC) teams with offline environments or on-premises requirements.Carbon Black EDR continuously records and stores comprehensive endpoint activity data, so that security professionals can hunt threats in real time and visualize the complete attack kill chain. It leverages the VMware Carbon Black Cloud’s aggregated threat intelligence, which is applied to the endpoint activity system of record for evidence and detection of these identified threats and patterns of behavior.
https://www.carbonblack.com/resources/endpoint-detection-and-response-threat-hunting-and-incident-response-for-hybrid-deployments/

  • Endpoint Detection and Response (EDR)
Identify, isolate and remove endpoint threats in real-time

Continuous monitoring for real-time EDR security
EDR works through continuous monitoring of the endpoint using Indicators of Compromise (IoC).

Rapid incident response times
Many endpoint threats can bypass traditional and advanced security in the time it takes for a human to respond to the activity

Complete visibility across your entire endpoint network

How EDR works
Endpoint Detection and Response tools work by continuously monitoring activity on endpoints, with the aim of identifying suspicious or threatening behaviour in real time.
Information is recorded and analysed for internal or external attacks.
EDR can identify specific behaviors to alert organizations to potential threats before the attackers can cause harm.
Once a threat has been detected, EDR can isolate and deflect attacks from internal and external sources, protecting endpoint devices from risks. 
The end-to-end analysis is supported by a range of innovative technologies, including machine learning and behavioral analysis.
https://www.fireeye.com/products/endpoint-security/endpoint-detection-response.html