Thursday, May 25, 2017

HOWTO export the MACOSX RootCA List

MACOSX  keychain  holds the rootCAs that are pre-installed by the system. Approx 180 CAs are pre-canned int he OS.


Here's a quick way to export ALL of them

1: open the keychain access  and  click System

2: select the  listed CA



3: Select "Export"





4: 

DO NOT  CLICK "GET INFO" unless you want 192 pop-screens on you desktop



After the export has been saved you will have a PEMbundle, you can use this simple script for listing the  bundle names and dates




Ken Felix



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

        /  \

Monday, May 22, 2017

Fortigate SSLVPN and multiple -realms

In this blog we will show how to  use a fortigate with  numerous realms. The realm name would be the target  URL path

e.x

https://sslvpn.example.com/vpnclientfr
https://sslvpn.example.com/vpnclientsp

In this design , we have craft  2 realm for our spanish and french speakers. This will allow you  craft  unique pages and even have unique authentication requirements such as users/groups/ldap-authservers

1st here's a topo-map





2nd  you need to craft the respective  realm and web-portals. In mine case the web-portals are web-mode only , but these could be tunnel-mode  or a combination.




In our vpn ssl settings we will define the   auth-roles;



And now if you login at your site with the correct, you will be auth by that auth-role and present just that webportal.



and for  our french speakers;


  

TIP: make sure you have the  SSLVPN fwpolicies with the correct group(s)
 
Yeap , it's that easy !




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

        /  \


Saturday, May 20, 2017

FortiAnalyzer license expirations

 FAZ  license expirations






Here's what happens if you let a FAZ unit expires & from the cli aspect. The webgui is pretty much useless btw.



FAZ-001 # config sys admin user
Critical error: command 'system.admin.user' is not permitted if no valid license

No permission to 'config system.admin.user'

FAZ-001 # config system  global
Critical error: command 'system.global' is not permitted if no valid license

No permission to 'config system.global'

FAZ-001 # config sys  mail 
Critical error: command 'system.mail' is not permitted if no valid license

No permission to 'config system.mail'

FAZ-001 # config sys  snmp community
Critical error: command 'system.snmp.community' is not permitted if no valid license

No permission to 'config system.snmp.community'


Most system config items that are NOT networking related are blocked. Diag commands do work for the most part btw.

Ken Felix



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

        /  \

Thursday, May 18, 2017

SSLv3 check for various web browsers

If you didn't know it by now,  but  the various SSL versions are now no longer supported from a industry & security practice,  and have been that way for the most part or over the last  few months.

But did you know that many sites are still SSLv3 enabled across the internet?

Even worst, many internal org/enterprises have a host of  management  interfaces that are sill SSLv3 and have not migrated to a updated  code or enforce TLS1.x support with the applications.

This crucial lockdown step have been overlooked by many infomation-security teams.





Also many  webclients are still supporting SSLv3  unless you have actually upgraded the webclient.

Here's  a few screen shots that I put together for testing and validations

IE
 
FF

 
CHROME



I also used a older  Opera  44 version to show you what happens if your not up to date on client versions.


OPERA Did  launch prior to my update  & afterward my  browser just spins, but  with no warning


SAFARI   Version 10.1 (10603.1.30.0.34)



Vivaldi



Now you don't need a   to find a SSLv3 website, just use  the  openssl s_server function for testing

e.g



On a backend note,

"you can  easily find many clients and many sites that are negotiating  sslv3 by just looking at the   ClientHello/Server handshakes messages"


 You can do this with a simple tcp-packet grabber and pcap display filter for SSLv3 protocol.



Ken Felix





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


 



How to use certreq tool to build a CSR on MS system

This comes up  numerous time with how to generate a SSL CSR  on a microsoft system. People believe that you need IIS installed to generate a CSR,  but that's not 100% true  & if you have the certreq tool.


In this example, I'm crafting a CSR that will  use "X509v3 Subject Alternative Names" and with a sha2 signature.

The  below  is the content of my values



The window's  cmd.exe needs to be ran as "Administrator" level ,  and then you can call the above saved  text from the cli for the generation of the  CSR.

certreq -new yournamedinitfile.txt <thecsrnamed_output>

 This will generate a base  CSR that can be uploaded to any CA for signing.








Key items to notice;

  • the  "HashAlgorithm"  value is set to ensure sha1 is not used.
  • DNS value are set for alternatveNames, just string out  the dns= value  for the altNames



Ken Felix




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

        /  \

Tuesday, May 16, 2017

The FortiAnalyzer language support is good, but still have holes

¿ Que Hablas ?


Reports in the fortianalyzer can be done in a wide variety of languages.

My experiences of working on various continents like Africa/Americas/Asia/EU,  this can come in  handy where English,  French, Portugese or Spanish could be used natively by the local audience.



 



Here's a snippets of a basic-reports done in a language that's  non English.

1st up  french;
















Take note of date/time format in the page title.


Now a Spanish report &  the same two sections.






note that  the  date/time is NOT in spanish for the title page  ;)


And finally  here the menu for Portuguese speakers which is the same for Spanish speakers.





FTNT has came a long way with  multiple language support  & this is a big selling point for MSSP outside the  North-American security community.






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

        /  \


using scp to push images into NXOS switches

In this post, I'm going to show you how simple  you can make the process  for  copy images into  NXOS.

Remember NXOS is wrapper  around the  unixOS so things like a SCP server are available as a feature.


1st step feature enable  scp-server  for the NXOS

e.g
    feature sap-server 


2nd step,  use your favorite scope client and copy the images to the  targets

e.g
    scp ./*images*  kfelix@10.1.1.1:

3rd you can even script this process with ease.

      ssh kfelix:mypassword@10.1.1.1  "config ; feature scp-server "
scp "images*" kfelix:mypassword@10.1.1.1:


Image result for tip you can use passwords  ssh logins on nxos and with another AAA setup configured. The shekel will  be used for the authentication process



e.g 


  config  ; username kfelix ; username kfelix sshkey ssh-rsa    AAAAB3NzaC1yc2EAAAADAQABAAABAQC1f9FUinkkkjhftdjrdktg;lthjsyybu;s djky  drsd



Do any of the above will eliminate the need for stroking  a local ftp/tftp/ssh-server and allows any  scp-client to upgrade nxos switches with ease.


Ken Felix



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