Friday, November 11, 2016

ssh and support hmac

Be advise that  ssh  and PKI encryption has issues from ciphers to hmac support for both the server and client. Various   ssh-clients can't support all types.

reference  my previous cipher post http://socpuppet.blogspot.com/2013/04/ssh-and-ciphers-tipstricks.html


When it comes to the hmac and the target ssh-server you can check  support by defining the hmac to use.



Within openssh you have to use the -m option and specify the  "hmac" that you want to try. The ssh-server will either accept or reject , and if you use the -v option you can easily find the support versions that it supports. Both  ssh client and server will use the highest mutual support version between the pair.


e.g



Here's an example of  the stronger to weaker hmac types

SHA512
SHA384
SHA256
SHA224
SHA1
MD5
MD4


You can use the free tool to  explore and graft  various message hashing

http://www.freeformatter.com/hmac-generator.html


On most openssh  based sshclients you can use the  -Q option to display your support versions 






Ken Felix

NSE ( network security expert) and Route/Switching Engineer
kfelix  -----a----t---- socpuppets ---dot---com

     ^      ^
=(  @  @ )=
         o 
        /  \

Thursday, November 10, 2016

FortiOS addres objects bad formats

Here's a gotcha that can slip by.

The FortiOS code allows for badly format firewall-objects.  It will cause  major issues if you don't review the output when issuing a bad mask.

Take these examples;





hmm..... titanico




Ken Felix

NSE ( network security expert) and Route/Switching Engineer
kfelix  -----a----t---- socpuppets ---dot---com

     ^      ^
=(  @  @ )=
         o 
        /  \

F5 apm tips socpuppets

We found some issues in the  F5 APM  that could cause some issues. Here's a few pointers to take into considerations.


1: be aware of  various options that's available depending on the BIG-IP version that's installed









2:  for  RDP sessions and MS-IE browsers and to run the RDP session full screen "CTRL ALT BRK" might be required to size the screen fullsize



3: ensure  the  java-client is enabled for any webportal rdp applications  a must for macosx



4: Make sure you keep your java version current


5: if your using a BIG-IQ the  sshd and httpd access-allow with /32s can be problematic when attempting to  build trust with the BIG-IQ and the F5-LTM.  You might have to  eliminate the /32 entries and use a /24 mask


e.g  ( typical acl )





So if the  BIG-IQ display  can't establish trust , try ssh'ing from the BIG-IQ appliance direct to the F5 and see if you find any failures.  If so modify the  ACL  if your using any /32 for the BIG-IQ address.


And finally if you have client-side-checks looping you can disable the continous checks for the specific clientsidechecks





Ken Felix

NSE ( network security expert) and Route/Switching Engineer
kfelix  -----a----t---- socpuppets ---dot---com

     ^      ^
=(  @  @ )=
         o 

        /  \

Thursday, November 3, 2016

TLS for SMTP how do we check if our mailserver support it?

Tools for checking  TLS support and email servers exist and should be used to validate that your mailsystem can use TLS

https://www.checktls.com

https://ssl-tools.net/mailservers/ 


ssl tools is the best out of the 2 with reports on errors and  weak systems. Take this MX host


 

You can use  openssl and starttls for testing  mailservers;


e.g

 openssl s_client -connect yourmailhost.mydomain.com:25 -starttls smtp -ssl3


Why do we care for  TLS  within our email systems?


We need to ensure we  use encryption during transport and that we are not exposed or vulnerable.

For various compliance requirements we want to  protect data sent between 2 parties, by using and enforcing  TLS per rcpt domain we can ensure we at least protect mail in transit. IBE  ( identity base encryption is better or just encrypting the mail data as a attachment  is even better )

Many pro and con exist for mail security and the management of  these  methods could require more support and add complexity.

At minimum we should support TLS for SMTP connections and ensure we are running TLS v1.0 or better an with a strong cipher.


Ken Felix

NSE ( network security expert) and Route/Switching Engineer
kfelix  -----a----t---- socpuppets ---dot---com

     ^      ^
=(  @  @ )=
         o 

        /  \

Tuesday, November 1, 2016

HOWTO generate Elliptic Curve CSRs FortiGate

In this post I will show you how to craft a EC based CSR, This signing request can be done vey easily from the CLI


Elliptic curve


1; specific the  subject parameters on the cli


exec vpn certificate local generate ec <CRTNAME>  secp521r1 <cn.name>  C  ST L O OU  emailaddress 


2;  execute a GET and SHOW full to validate


3; copy down  the   CSR  portion and send it to your Authority for signing

SECTION masked in blue you send to the CA.




Ken

NSE ( network security expert) and Route/Switching Engineer
kfelix  -----a----t---- socpuppets ---dot---com

     ^      ^
=(  @  @ )=
         o 
        /  \

Monday, October 31, 2016

detrming fortiOS uptime

In the fortigate firewall  you have a  few creative ways for determining the system uptime without accessing the  webgui


1:  by using the hidden  cli cmd  fnsysctl cat /proc/uptime

requires you to convert  seconds to  Month/Week/Days


2: execution of the diag sys top command and looking at the  system runtime


Ken

NSE ( network security expert) and Route/Switching Engineer
kfelix  -----a----t---- socpuppets ---dot---com

     ^      ^
=(  @  @ )=
         o 
        /  \

Friday, October 28, 2016

A quick and sure to know if a SSL certificate is a used as a CertAuthority

Under the x509 v3 we have special attributes  for indicating the purpose of a certificate and if it's "CA".

By using the openssl x509  we can review what's the certificate  type and if it's a CA certificate.


Take this certificate  chain where we have  two certificats  and we want to find out which one is a CA certificate from a  usage standpoint




Notice the CA: TRUE vrs the CA:FALSE if the former is set, then that's a indication it top of the chain and as  a rootCA  or intermediate certificate.

Take this Entrust Chain where we have a root, plus 2 intermediate certificates and finally the server

( I'm showing the  CA: flags for the root and intermediates outputs  truncated  )


















( now at the end of the  chain we have the server certificate, notice the CA:FALSE )







So you have a few means for validate the certificate and it's usage.

Ken

NSE ( network security expert) and Route/Switching Engineer
kfelix  -----a----t---- socpuppets ---dot---com

     ^      ^
=(  @  @ )=
         o 
        /  \