Was at Thoughtworks GEEK NIGHT
http://thoughtworks.wikispaces.com/Bangalore+GeekNight+Jan+30th
Securing Gmail with OTP : Demo
Hi,
I put together a quick demo on how to secure Gmail with SecurID.
Technical Details can be found here
I put together a quick demo on how to secure Gmail with SecurID.
Technical Details can be found here
Gmail Burglar Alarm - UserPrefs Issue
Hi,
You may have noticed a that the Gmail Burglar alarm seemed to have stopped working sometime ago. The code had not changed much, so it was a little strange for it to stop working suddenly. A little poking and I noticed that the user preferences were not stored properly in the Gadget. The preferences were not persisted across browser sessions and hence, the user's Google Calendar session token was not saved.
The default values for were empty strings. Changing them to strings with spaces solved the problem. Hence, the default values have changed from empty strings to "none". It is a little strange, but I also noticed that the preferences were infact fetched properly from the server. Will investigate this later.
Another frequent error that I seem to encounter seems to be related to gadgets on a wider scale. When the page does not load completly or when some links are clicked, contents of the page are replaced with [ObjectHTMLDiv] which seems to be the toString() representation of a div assigned. This has not been consistant and it would be interesting to see how this is caused. Watch out this space for details as I discover them. If you know what this is about, I would be glad to hear.
You may have noticed a that the Gmail Burglar alarm seemed to have stopped working sometime ago. The code had not changed much, so it was a little strange for it to stop working suddenly. A little poking and I noticed that the user preferences were not stored properly in the Gadget. The preferences were not persisted across browser sessions and hence, the user's Google Calendar session token was not saved.
The default values for
Another frequent error that I seem to encounter seems to be related to gadgets on a wider scale. When the page does not load completly or when some links are clicked, contents of the page are replaced with [ObjectHTMLDiv] which seems to be the toString() representation of a div assigned. This has not been consistant and it would be interesting to see how this is caused. Watch out this space for details as I discover them. If you know what this is about, I would be glad to hear.
Sign On Manager - quick update
Hi,
A quick update on sign on manager - many users had complained that the sign on manager displayed an annoying div on every login page. This has now been removed and hence, the sign on manager will only activate using the user menu. It can be activated by
A quick update on sign on manager - many users had complained that the sign on manager displayed an annoying div on every login page. This has now been removed and hence, the sign on manager will only activate using the user menu. It can be activated by
- Right clicking on greasemonkey icon
- Select User Scripts
- Select Start Sign On Manager
Gmail Burglar Alarm - better dates on reports
Hi,
This is a continuation to the series of posts about the Gmail Burglar Alarm Gadget and details an improvement to the reports screen. The reports used to spit out ISO8061 formatted values in the tables and many users agreed that the format was difficult to read.
This has changed and the data is now sent to the client in terms of "seconds from 1970". The javascript code at the client then converts this number to a display format that is native to the browser, allowing the users to interpret the data better. This required looping over the data returned to the client and setting the "formatted value" in the appropriate columns.
An extra column has also been to show the duration and it is displayed as a bar graph. This allows users to sort of duration of visits and seems to be more useful that just showing numbers. We are also planning more visualizations for looking at the Gmail sessions. Suggestions welcome.
This is a continuation to the series of posts about the Gmail Burglar Alarm Gadget and details an improvement to the reports screen. The reports used to spit out ISO8061 formatted values in the tables and many users agreed that the format was difficult to read.
This has changed and the data is now sent to the client in terms of "seconds from 1970". The javascript code at the client then converts this number to a display format that is native to the browser, allowing the users to interpret the data better. This required looping over the data returned to the client and setting the "formatted value" in the appropriate columns.
An extra column has also been to show the duration and it is displayed as a bar graph. This allows users to sort of duration of visits and seems to be more useful that just showing numbers. We are also planning more visualizations for looking at the Gmail sessions. Suggestions welcome.
Securing Gmail a little more - with OTPs and CardSpace
Hi,
I had earlier posted a series of articles on Gmail gadgets. I had also written about using one time passwords like SecurID to secure Gmail better. This post describes the technical details to achieve that. The steps look something like this
I had earlier posted a series of articles on Gmail gadgets. I had also written about using one time passwords like SecurID to secure Gmail better. This post describes the technical details to achieve that. The steps look something like this
- The user logs into Gmail
- The gadget is loaded. It sets the top.location to the securID login page
- The user is sent a random code via SMS (using Google Calendar). If the token is SecurID, the SecurID SDK is use
- The user enters the code in the page.
- If the code is correct, it is set as a cookie (or store it temporarily at the server) and the page redirects the user to Gmail
- The Gadget loads again and gadget asks the server for status of the token
- If the server gets the token code from the cookie (or from the user session) and sends the result of authentication back to the user.
- Gadgets are disabled in the basic mode
- Gadgets are not "REQUIRED" to be executed for gmail to load. Only certain special gadgets (chat, labs, etc) are mandatory.
- POP3 and IMAP could be other ways mail is retrieved. These have to be turned on.
Gmail Burglar Alarm - Technical Details
Hi,
I had written about the Google Gadget [Gmail Burglar Alarm] that logs your gmail session. This post is dedicated to the technical details of the Gadget. The gadget is hosted on Google App engine with its code available on Google Code.
The Gadget is a simple xml file that loads some javascript to make the first call to store the time of login. It also checks the preferences of the gadget ot see if it has been initialized already. The preferences store the session token required for writing events to Google Calendar and would be available if this is not the first run.
If it is indeed the first time the gadget is executed, the following takes place. It is a little tricky to
I have not been able to figure out a way where I could get app engine to ignore the connection termination and store the request. Till then, I store the session every 30 seconds and it is written to the store when the application loads next.
This was the overall design of the application. Please do suggest improvements / ideas, etc.
I had written about the Google Gadget [Gmail Burglar Alarm] that logs your gmail session. This post is dedicated to the technical details of the Gadget. The gadget is hosted on Google App engine with its code available on Google Code.
The Gadget is a simple xml file that loads some javascript to make the first call to store the time of login. It also checks the preferences of the gadget ot see if it has been initialized already. The preferences store the session token required for writing events to Google Calendar and would be available if this is not the first run.
If it is indeed the first time the gadget is executed, the following takes place. It is a little tricky to
- Show grant access button in the gadget
- On clicking grant access, open a new window and show Google's Grant access page with target set to gmailids.appspot.com domain.
- When user selects grant access, he is redirected to the target page with the session token
- The auth token is exchanged for session token and the page is reloaded
- The page stores the session token in the cookie and closes the window
- The gadget would be listening to a window close event and when it does, it requests for a cookie reader page.
- The cookie reader page reads the cookie at the server and includes it as a script.
- This is then saved as a user preference and the page is reloaded.
I have not been able to figure out a way where I could get app engine to ignore the connection termination and store the request. Till then, I store the session every 30 seconds and it is written to the store when the application loads next.
This was the overall design of the application. Please do suggest improvements / ideas, etc.
The Gmail Burglar Alarm
GMail Burglar Alarm is a gadget that you can add to your standard Gmail web interface to record your gmail sessions. Additionally, it also analyzes details of all sessions (like IP address, browser type, etc) and tries to determine if a session was suspicious. If the percentage of suspicion is high, you are alerted via a text message to the mobile number configured in your Google calendar. All the data stays with you and is stored on your Google Calendar.
The following video shows the various steps to add the Gadget to your gmail account. It also shows steps required to grant the application, access to write to your google calendar.
You will also have to configure your google calendar to recieve text message alerts.
This can be done as shown in the following video
The data is stored in a new calendar created on Google Calendar. This calendar is private to you and has details like IP address of login, HTTP Headers, browser version, etc. The gadget also displays the total time you spend on gmail, etc. The gadget analyzes recent sessions and tries to establish a pattern. Anything that is way out of this pattern is potentially dangerous and you are alerted.
Please do drop in your comments and suggestions to improve this application. Watch out this blog for techanical details and updates.
Note: Please note that this application works only on Gmail standard interface with gadgets enabled. The gadget can record and alert only on the pages where the gadget is run. This is not a total security solution but only an idea..
The following video shows the various steps to add the Gadget to your gmail account. It also shows steps required to grant the application, access to write to your google calendar.
You will also have to configure your google calendar to recieve text message alerts.
This can be done as shown in the following video
The data is stored in a new calendar created on Google Calendar. This calendar is private to you and has details like IP address of login, HTTP Headers, browser version, etc. The gadget also displays the total time you spend on gmail, etc. The gadget analyzes recent sessions and tries to establish a pattern. Anything that is way out of this pattern is potentially dangerous and you are alerted.
Please do drop in your comments and suggestions to improve this application. Watch out this blog for techanical details and updates.
Note: Please note that this application works only on Gmail standard interface with gadgets enabled. The gadget can record and alert only on the pages where the gadget is run. This is not a total security solution but only an idea..
Gmail IDS - Version Alpha
A lot of hacking and coding during the holidays, and I have the alpha version of the gadget that saves your Gmail login sessions into Google Calendar. The gadget is available at http://gmailids.appspot.com/gids.xml . I am planning to add a video demonstration on how to add the gadget and configure calendar for your mobile later, but for now, you can add the gadget by the following steps.
Technical details of how the gadget was made will follow.
To follow new and updates, keep checking this link.
- Login to gmail
- Select "Settings" [Top right corner]
- Select the Labs Tab
- Select Enable in the Add Gadget [usually the last option]
- You will get a new "Gadget" Tab. Click on it
- Type the URL "http://gmailid
s.appspot.com/g ids.xml" in the text box and click "Add"
Technical details of how the gadget was made will follow.
To follow new and updates, keep checking this link.
Subscribe to:
Posts (Atom)