Saturday, May 13, 2017

JumpCloud agent and proxies issues

I want to point out that transparent http-proxies could break the agent  function.

A good indication that this is happening can be obtained by looking at the jcagent.log  and the jump cloud portal


portal  { will show a inactive state }





log { errors on GET/POST to  JumpCLoud }




Your fix  to the above issues requires you to place exemptions policies for the  jump cloud agents based on the URL  method  https://agent.jumpcloud.com/* or use a explicit proxy.

Also  in  a bluecoat proxy it can provide  errors such as;



Also keep in mind  the CA authority is flagged via  most SSL site analysis tools

https://www.ssllabs.com/ssltest/analyze.html?d=agent.jumpcloud.com




HTbridge

https://www.htbridge.com/ssl/





Ken Felix




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

FortiOs v5.2.11 upgrade as simple as 1 2 3

We just upgrade a FGT140D to fortiOS via the webgui quick upgrade feature. The upgrade happen faultless and is simple to execute.




Compared to a cisco ASA or Juniper SRX, the upgrade path and package is hands down one of the easiest appliance to upgrade.

Playing around with the 5.2.11 I was  still shocked to see SSLv2/3 is supported in  the SSL settings.

One thing that was confirm, even with SSLv2 enabled and forticlient can not  established a session.





Ken Felix




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

Friday, May 12, 2017

time is all that we have ( tips for FortiOS )

Every second we are getting older ;)

Here's some fortigate time tricks/tips

Here's a  few ways to find system time  if you don't have WebGUI access

1> cat proc  RTC  deteilas, time will be in UTC

fnsysctl cat /proc/driver/rtc

rtc_time        : 18:51:01
rtc_date        : 2017-05-09
rtc_epoch       : 1900
alarm           : **:**:**
DST_enable      : no
BCD             : yes
24hr            : yes
square_wave     : no
alarm_IRQ       : no
update_IRQ      : no
periodic_IRQ    : no
periodic_freq   : 1024
batt_status     : okay


2>  Get system status

FWSOC01 # get system status | grep time
System time: Tue May  9 11:51:27 2017

3>  Get the administrator status

FWSOC01 #  get sys admin status | grep current
current time: 2017-05-09 11:51:29




4>  Create a REV backup and immediately list the  REV, the timestamp would be the current time

execute backup config flash  BLOG
execute revision  list config


5>  Or just execute a time

execute  time




Ken Felix



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


Wednesday, May 10, 2017

JumpCloud System Agent and how it can be helpful

In this post I will demo how the jumpCloud Agent  can be used to create/delete  system- users per  unix systems.


JumpCloud now  has an agents  for;   linux , macosx and windows. My experience is based around  the  linux OS,  but in this demo I will show the process for a MACOSX  on my laptop. Functionally the concept are mutually the same.


1st you need to install the agent on the system that we want to control. This is a simple  installer that use a limited space and is highly effective.

https://support.jumpcloud.com/customer/portal/articles/2441026--windows-os-x-downloading-jumpcloud-agent-from-command-line

The sagent once install,  and activated with your unique   registration key , will now  show up in  your portal.

Here you can bound  user(s) to a system(s). Take the follow  visio as a  possible deployment method for  a group of LAMP servers.





From a single  jumpcloud portal. I could assign user(s) to each server without sys administration of the servers directly. These systems could be anywhere in any DC, virtual or real.

This means  in a nutshell; " we can create or delete user(s)"  in just meer  seconds or minutes,  and never have to login into the server(s) to add or delete the accounts "

Great if you have a new sysAdmin who's onboarding,  or a  recent end-user termination.

1st we install the JCagent on the  related systems;



Part of the agent install is to pipe in  the registration key that's unique to your portal




Once the agent is up  and have callhome into JumpCloud, you will see the systems details.



Under the mac and linux you will find a unix-proc that;s running and the conf file for the  systems values are held here









Now we create the JumpCloud user in the portal





And finally bind the user(s) to the systems






 You can still manage local accounts with the agent installed







From now on, we can monitor the  JCagentlog file & in the macosx system preferenec > Users  we can find these new users added to  the system.






You will find that accounts are add/delete in meer seconds for the most part after you bind them to the system.


If you delete a user account the logs will show the following




Yes sir, it's really that simple. To give you a example. I spent more time post these screenshot and writing this blog than doing the administrator work of creating and deleting the users in this example

:)


JumpCloud's    LDAP-aaS and the many other offerings,  is a great means for controlling users and provides a solid  based for system-access and IAM.


All JumpCloud agent communication is done over tcp to the jumpcloud instance stroked in  AWcompute-1.amazonaws.com




Read this for proxy  setup &  if you have a localize  http-proxy. I believe most transparent  proxies will break the agent capabilities





KenFelix

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

Tuesday, May 9, 2017

Securing Fortimail User Mailboxes Access with MFA + SSO by using Auth Anvil

In this blog I will demo how simple the process is for securing FortiMail access. This was done for a appliance acting as a "server mode" where the users mailboxes are localize on the mail appliance


AuthAnvil  handles the  MFA and SSO function
AuthAnvil  SSO plugin  has been installed as chrome extension
Authy extention also has been installed if you decide to use  OTP and manual  input
The AuthAnvil  Mobile Android can be use as an alternative for push-notification or OTP

This blog assume you are  knowledgeable with typical MFA user enrollment process, and I will not detail that process out, since it mimic most other MFA platforms.

The 1t step is to  authentication to the AuthAnvil  portal as a administrator and craft a user group that will be bound to the app that we are securing with MFA+SSO.

In my case I have  two group of users OWA and FML , my  users are members of  either group &   will be authenticated  via MFA and SSO for the fortimail mailbox.



Next we craft a custom APP. My app is named "FML" but you can name yours in whatever fashion that you want & suits your needs.









Identity needs to be set and configured in the application. Take note of the  "arrows"




Now a attribute needs to be set. In this case we are using User.EmailAddress for the SSO credentials.

 




And don't forget to bind your groups to the app. This is what place the  APPlications on the launchpad for that user btw.


The final application looks like this and with my  default policy





Now when ever that mailuser who's part of the  group logins to the AuthAnvil Portal,  he|she will authentication via 1st and 2nd factor,  and will  be carried via SSO directly to the fortimail user mailbox.












After MFA, the user only needs to execute the FortiMail APP to login into  FortiMail.



AuthAnvil will  carried the credentials for SSO into FortiMail if everything is successful












if SSO fails,  then  the user must  execute the actual login process  for the fortimail email account





Ken Felix
 


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

Sunday, April 30, 2017

Looking at F5 APM VPN resources disconnects

Looking at  a new F5 vpn solution I found  it strange that you could establish a vpn and disconnect your virtual adapter and  reconnect without being  challenge at the start of the APM policy

Take a look at this  client  starting and stopping his  tunnel  numerous times.



Each new "start" does NOT challenge the user to  establish a new session from  the APM policy standpoint.

So keep  this is in-mind you have ClientSides checks and the users machine is no longer in policy you could open up a door into your systems with out of compliance   hosts.

In this APM policy we have the CSC  "continuous" checks disable due to other issues we found.





SO I'm not 100% sure if this would be a major issues to be concern with if you have continuous hosts checks enabled.

Ken
 




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

Saturday, April 29, 2017

redirection loops http

I can't even begin to describe the number of times "  I've see HTTP 30X redirections loops from  poor  web-service hosting practices"

Think of a loop like that of this poor creature running in the circular cage




In most browser they will give up  a simple fatal error after XXX amount of loops-tries.

Various browser handle loops differently  but they always clearly  tell you a loop exists.


e.g  ( opera and safari )








cUrl will quickly show you redirect loops by using a the verbose output and  grep'ing for "Location:" header. If you see the same  Location: header more than 1 once for a http.get, than you have a loop condition.


e.g





It critical to test http.redirect and ensure you don't write a loop or create redirection dependency.






Ken  Felix




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