Thursday, August 8, 2019

Howto bypass traditional tcp/udp DoS protections with HTTP get flooding

HTTP is a widely used protocol in fact most of the internet traffic is web. Typical DoS protection used session limits by a single src.ip for volumetric attack. This works at layer3+4 for most firewall. DoS protections protects from

1: number of session
2: port reuse
3: tcp-half-open
4: tcp-new session attempts
etc....


So sending  3000k session from a  single ip address is easy to  defend by setting sessions profiles limits. It's also easy to review from a firewall log analysis.

But a  HTTP  GE  via a single session is much harder. Here' I will use  httperf to send a HTTP request that contains 100 GETs


httperf  --max-connections 1  --num-calls 100  --print-request  header --server  www.example.com


So as seen by the  tcptrace tool it looks like one single tcp session between client and server.


408 packets seen, 408 TCP packets traced
elapsed wallclock time: 0:00:00.023934, 17046 pkts/sec analyzed
trace file elapsed time: 0:00:01.328067
TCP connection info:
  1: kenthehackerLinx:47746 - 93.184.216.34:80 (a2b)  205>  203<  (complete)




but if we analyze the actual  pcap we will see 100 GETs where contained within the single tcp session



dodflooder@kenthehacker:~$ tcptrace -n -xhttp http.pcap  | grep GET | wc
    100     300    1900

We will use tshark also to validate the numbers


dodflooder@kenthehacker:~$
dodflooder@kenthehacker:~$ tshark -r http.pcap  -z http,stat | tail -n 12
  405   1.316035  10.92.89.2 → 93.184.216.34 TCP 66 47746 → 80 [ACK] Seq=6801 Ack=159871 Win=14612 Len=0 TSval=5657385 TSecr=3211221224
  406   1.316061  10.92.89.2 → 93.184.216.34 TCP 66 47746 → 80 [FIN, ACK] Seq=6801 Ack=159871 Win=14612 Len=0 TSval=5657385 TSecr=3211221224
  407   1.328047 93.184.216.34 → 10.92.89.2  TCP 66 80 → 47746 [FIN, ACK] Seq=159871 Ack=6802 Win=144896 Len=0 TSval=3211221236 TSecr=5657385
  408   1.328067  10.92.89.2 → 93.184.216.34 TCP 66 47746 → 80 [ACK] Seq=6802 Ack=159872 Win=14612 Len=0 TSval=5657388 TSecr=3211221236

===================================================================
HTTP Statistics
* HTTP Status Codes in reply packets
    HTTP 200 OK
* List of HTTP Request methods
          GET 100
===================================================================

and http,tree shows



===========================
HTTP/Packet Counter:
Topic / Item            Count         Average       Min val       Max val       Rate (ms)     Percent       Burst rate    Burst start
--------------------------------------------------------------------------------------------------------------------------
Total HTTP Packets      200                                                     0.1534        100%          0.1600        0.025
 HTTP Response Packets  100                                                     0.0767        50.00%        0.0800        0.025
  2xx: Success          100                                                     0.0767        100.00%       0.0800        0.025
   200 OK               100                                                     0.0767        100.00%       0.0800        0.025
  ???: broken           0                                                       0.0000        0.00%         -             -
  5xx: Server Error     0                                                       0.0000        0.00%         -             -
  4xx: Client Error     0                                                       0.0000        0.00%         -             -
  3xx: Redirection      0                                                       0.0000        0.00%         -             -
  1xx: Informational    0                                                       0.0000        0.00%         -             -
 HTTP Request Packets   100                                                     0.0767        50.00%        0.0800        0.012
  GET                   100                                                     0.0767        100.00%       0.0800        0.012
 Other HTTP Packets     0                                                       0.0000        0.00%         -             -

---------------------------------------------------------------------------------------------------------------------------







HTTP was used here so we could review data with out any decryption concerns. Typically most sites are HTTPS so the same would hold true, a single https-session with multiple HTTP-GET










So DoS protection profiles will not work on a layer7 application flooding and with HTTP protocol. You will need to deploy a SLB or ADC in front of the server to limit the http GETs.


A F5-LTM , Netscaler, FortiWeb or A10 would be able to control  this type of flooding or better yet a WAF. 

By rate limiting the web site, you can prevent flooding from impacting the servers within the pool.


Other cool tools for web stressing and flooding nc, ab, bombardment or locust.

Enjoy






NSE ( network security expert) and Route/Switching Engineer
kfelix  -----a----t---- socpuppets ---dot---com
     ^      ^
=(  @  @ )=
         o
        /  \



Tuesday, July 16, 2019

PANOS updates with a letter in the name

Looking at my PANOS updates emails,  I notice that they had a PANOS with "h4" in the name  Do not see that much of this but it does happen..




It seems like we are seeing more PANOS supplemental hotfixes which could be seen as a good or bad thing. Good in that issues are being found and fixed.

These updates needs to be reviewed for critical issues and applied. When you  see a lot of HIGH  CVEs than it's truly time to take a closer investigation.

In a HA setup, you can easily apply these updates with zero impact.





NSE ( network security expert) and Route/Switching Engineer
kfelix  -----a----t---- socpuppets ---dot---com
     ^      ^
=(  @  @ )=
         o
        /  \

Thursday, July 11, 2019

Opera VPN in the browser

Vpnbook is one of the best vpn solution that  can come handy. Here we will look at opera browser vpn. They have the ability to select VPN for web-browsing.

The vpn tab when "blue" means your  true web-browsing address is being hidden.



Various locations when selected will show a different  what is my address details.





My real ipv4.address at this open Wifi HotSpot is show below as 216.24.68.195.




Using opera all traffic will be sourced with the VPN address and anything other traffic will use the real address.



Keep in mind most web-proxy will registering these ip as proxy-avoidance. YMMV but this another method to ensure your internet web-privacy during browsing.

Tor and Epic are two other means that can ensure privacy during web browsing. So if you do not trust the big GOV , look at web-privacy methods that are free and simple to execute.

“Arguing that you don't care about the right to privacy because you have nothing to hide is no different than saying you don't care about free speech because you have nothing to say."

Eric Snowden






NSE ( network security expert) and Route/Switching Engineer
kfelix  -----a----t---- socpuppets ---dot---com
     ^      ^
=(  @  @ )=
         o
        /  \

HOWTO Use A Yubikey SmartCard macOS10.14.3 Mojave

In this blog I will show you just how easy it is for securing the macos login & by using a yubikey.

I 'm using  a Yubikey 5 NFC in this demo. These are military grade and almost Indestructible.

https://www.yubico.com/product/yubikey-5-nfc/





1st download the yubikey manager, run thru the installer . In my setup I'm using 1.1.2 on all of my macos devices




Next, run the yubikey manager and see if you can find the details on your yubikey. It should report back both model and SN# info.




note: The usb interfaces where slow on my powerbook with seeing the yubikey details.





Go thru the steps and set a PIN and  PUK.

note: Do not write these down, but you need to remember them. Also you always can re-change the PIN and PUK, but you need the current PIN and PUK codes to make any changes.






Generate new certificate details. Doing this process it will ask you to remove+re-insert the yubikey and enter your keychain login.

NOTE: you will need your PIN also since the pairing is to pair the login+pin+yubikey for user authentication.









Now your done. When you have the Yubikey inserted, the login  prompt on the macOS desktop will require a PIN for login. This one of the simplest methods that can secure a macOS desktop with out using a 2 factor OTP authenticator.




You can read more about  Yubikey and macOS from these wonderful folks at evil-martians. They have some cool tips and with regards to security at the desktop and applications.

https://evilmartians.com/chronicles/stick-with-security-yubikey-ssh-gnupg-macos

https://evilmartians.com/chronicles




NSE ( network security expert) and Route/Switching Engineer
kfelix  -----a----t---- socpuppets ---dot---com
     ^      ^
=(  @  @ )=
         o
        /  \

Tuesday, July 2, 2019

Privacy and Security for passwords

E.Snowden  who has  shown us the US.gov  and other big governments of the world,  does not want us ( personal  sector )  to deploy harden security practices.

https://en.wikipedia.org/wiki/Edward_Snowden


We used passwords everyday, and in some case the same password across multiple systems. This is due that we can't manage hundreds of passwords and not  all systems MFA enabled.

If you have no  OTP ( one time password ) mechanism for a login , your at risk if your password is ever lost or the system was ever compromised. Mail.com had this happen with million of email-user accounts btw.

Here's a sure want to use passwords and make a strong password lengths and complexity and then you secure the data with a x509  certificate. You should avoid reusing passwords across multiple systems by all means. Yes it's tempting but in reality poor security execution.


So let's dive in....


example 1

You have a cool password for gmail.com,  but you can remember it since it's so long and so cool . Just encrypted it and then only you the owner of the matching private key can decrypt it



NOTE: that is not  password , so don't try to use it 


Okay example 2

You need to  make a long  IPSEC PSK of  36byte bytes & that is random to share with a vendor and who in the h#ll will remember it?

No problem encrypted the data by using a x509 pub-key




NOTE: You can do this and  send encrypted keys to others if they have a existing PKI-infastructure  and issue user certificates

This allows for you  to make very strong keys and with no risk if they are ever lost or stolen since they are encrypted. You only have to manage your certificate and ensure that you have a strong passphrase.


All of my traveling laptop have a aes128  loopFileSystem and with my encrypted keys stored. This way I can have my mail, bank, forums, alarm code, pin, account#s,  and others  systems passwords close by and 100% secured

!  And only need to manage one single master passphrase for decryption. !



TIP: You can add subject headers for the SMIME headers to  help provide pointer on what the password is for. Do not but sensitive information in this field

Example:

Subject line was added that describe this data contains.





With openssl , you can easily  encrypted with des / aes128 -thru- 256 or a few others ciphers. keep in mind your data is always at risk if your passwords are compromised.


lastly,  store the pass-phrase for your private-key in your memory or a vault. A good rule is passphrase made up of 8 words or more.


example

Bad      "This is a key"
Good  "This is Much STonger K3n is S0 Sm@rt! "







NSE ( network security expert) and Route/Switching Engineer
kfelix  -----a----t---- socpuppets ---dot---com
     ^      ^
=(  @  @ )=
         o
        /  \



Monday, June 17, 2019

TNSR cloud mirroring

https://www.netgate.com/resources/videos/tnsr-use-case-cloud-mirror-port.html


Mirroring in a cloud is always a problem and TNSR has a solution. They can do this a very high rate of transfer and you can send traffic via layer3 to a inspection tool.





NSE ( network security expert) and Route/Switching Engineer
kfelix  -----a----t---- socpuppets ---dot---com
     ^      ^
=(  @  @ )=
         o
        /  \

Saturday, June 15, 2019

Bye Bye PA200

I finally sold off my LAB PA-200 NGFW firewall. I have acquired a  PA-220 LAB unit and will get Panos 9.0 up on it when it get finalize with the support.

The PA220 replace the  PA200 and supports  a clean,small and quite footprint. Support for version PANOS 8-thru-9




A host of features are support in the PANOS v9.0. Palo Alto is upping the  stakes and still a leader in  regards to  APP-ID in the NGFW market.





NSE ( network security expert) and Route/Switching Engineer
kfelix  -----a----t---- socpuppets ---dot---com
     ^      ^
=(  @  @ )=
         o
        /  \