Monday, September 28, 2015

DreamFactory: Building a better backend for your apps

A free, open source solution for connecting mobile, IoT, or Web apps to backend server data and services

Let’s say you’re building a browser-based HTML5 Web application that’s going to display data from a database on your server. The usual development process involves lots of heavy lifting at both the client front end and the server backend.

Now, the front end is what you really care about - delivering the services and functionality to meet the user needs - but the backend work required to make the front end possible can be a huge time sink. You'll not only need database access and management you'll also need user registration, authentication, logging, and management services along with server-side computations, and to connect everything together, you need application programming interfaces (APIs).

While building all of that infrastructure in the long term it’s the APIs that can really cause you grief. Once your logic becomes rich and therefore complex, documenting how your client side apps interact with the server and keeping that information up to date often become a major source of errors, problems, and development and deployment delays.

The problem of how to create not only functional but also maintainable backend services is what the free, open source DreamFactory Services Platform (DSP), published by DreamFactory Software Inc., solves. DSP acts as middleware, automatically creating and documenting REST APIs that connect any client including mobile, Web, and IoT apps to SQL, NoSQL, and server-based files as well as scripting and services external to the server via authentication and security controls all wrapped up in enterprise-grade security.

DreamFactory architecture

APIs generated by DSP can also be customized with pre- and post-process logic using the built-in V8 JavaScript engine and DSP “integrates with Active Directory, LDAP, and OAuth, and takes care of user management, authentication, single sign-on, role-based permissions, and record-level access controls.”

DreamFactory API flow
The generated APIs and associated documentation is based on Swagger, a free, open source API framework used in production by the likes of Apigee, Getty Images, Intuit, LivingSocial, McKesson, Microsoft, Morningstar, and PayPal. Where this feature becomes even more powerful is in the generation of client SDKs:

As each new backend service is hooked up, DreamFactory automatically produces written documentation on the service interface, creates an interactive API browser for exploring the service manually, and generates a dynamic software development kit (SDK) for calling the service.

DSP is written in PHP and can be installed on premises or in the cloud with one-click installers available for Amazon, Azure, Google, VMware, Digital Ocean, and Bitnami, or you can run DSP locally (which makes it really easy to get development started) under Linux, Windows, or OS X.

If you want to start your evaluation as quickly as possible, I’d recommend the free Bitnami DreamFactory installer, Docker image, or virtual machine. I used the installer and had DSP running on OS X in under five minutes. As Bitnami points out, with their packaged solutions you can:

DreamFactory Software offers paid product support packages and commercial licenses. If you want to jump in with serious training and support, DreamFactory Software offers their Jumpstart program starting at $2,000 to get you from newbie to expert really quickly.

This is an amazing piece of engineering and if you’re doing any kind of even vaguely serious app development this DreamFactory Services Platform should absolutely be on your shortlist of service solutions.

Saturday, September 19, 2015

Windows devices account for 80% of malware infections transmitted via mobile networks

mobile security stock image one bad device
As PC owners increasing take to mobile connections for Internet access, malware follows

Microsoft may have just a single-digit slice of the mobile market, but there's one segment of mobile that it's winning: Malware infections delivered via mobile networks.

According to a Wednesday report from Alcatel-Lucent's Motive Security Lab, in June Windows devices accounted for 80% of the infections spotted on hardware that relied on mobile networks for Internet connectivity. Meanwhile, Android's share of the total infection count dropped to about 20% after long hovering at the 50% mark.

iOS and other operating systems were at nearly negligible percentages.

The data was generated from scans by Alcatel-Lucent's Motive Security Guardian technology, which is deployed worldwide by both mobile and fixed-line networks, and monitors traffic from more than 100 million devices.

That Windows malware infections represented such a huge portion of the total when Microsoft's operating system has been a very minor player in mobile is certainly counter-intuitive. If Windows-powered smartphones make up just 2.6% of all those shipped in 2015 -- IDC's latest forecast -- how can Windows comprise 80% of the malware infections?

Simple.
"Most people are surprised to find such a high proportion of Windows/PC devices involved," Alcatel-Lucent said in its report. "These Windows/PCs are connected to the mobile network via dongles and mobile Wi-Fi devices or simply tethered through smartphones. They are responsible for a large percentage of the malware infections observed."

While those devices are powered by Windows and on a mobile network, they're not necessarily smartphones or cellular-equipped tablets. In fact, the vast majority are not: They're traditional PCs, mainly laptops, that use a mobile network rather than a fixed network composed of copper or fiber optic lines. (Of the latter, a Wi-Fi network connected to a fixed network would still be classified as a fixed network by Alcatel-Lucent, even though there are no wires linking the laptop to the Internet.)

"As the mobile network becomes the access network of choice for many Windows PCs, the malware moves with them," the report stated.

Long the favorite target of cyber criminals because of its dominance on devices, overwhelmingly so compared to, say, Apple's OS X -- and due to its open ecosystem that differs dramatically from the "walled garden" of iOS -- Windows doesn't escape infection simply because devices have shifted from fixed to mobile networks.

Windows device infection rate -- what percentage of the total are detected with malware -- was also up significantly in the first half of 2015 on mobile networks. By June, it was approximately 0.6%, representing 6 infections per 1,000 devices. That was more than three times that of Android, the other OS that historically has had a high infection rate.

Alcatel-Lucent credited the decline of Android infection rates to moves Google has made, including efforts to eliminate malware-ridden apps from the Google Play e-mart, as well as Android's Verify Apps feature. The latter was introduced in 2012 with Android 4.2, aka Jelly Bean, and has been beefed up since then. Verify Apps scans apps a user wants to download, compares them against a Google database, and when a known malicious app is detected, blocks the download.

Google's intent has been to both clean up Google Play and stymie dangerous downloads from outside sources, like third-party app markets. The decline of Android infection rates and its share of all infections were signs that the strategy has worked, said Alcatel-Lucent.

Microsoft has had a similar protection in place since 2011, when it added an application reputation feature to its Internet Explorer-based SmartScreen technology.

Most of the infections Alcatel-Lucent detected on Windows devices was adware bundled with games and free software.

"The increase in Windows/PC infections can be attributed to the fact that more people are using their phone's data connection to provide Internet access for their devices," Alcatel-Lucent concluded.