Better HN
topnewbestaskshowjobs
Log inSign up

TriNetra

858 karma · joined Jun 12, 2016 (10y ago) · 235 submissions

I'm aware therefore I exist

https://ASPSecurityKit.net The only true Zero Trust security framework for .NET web apps. rapidly build secure MVC web apps and API services on ASP.NET or ServiceStack, with considerably less security code and experience.

Software consultant and entrepreneur. Full stack developer with expertise in security, web apps, Angular. Solution/business architect. Building startup in India. Legally blind.

Avid meditator since 2014 – 9k+ hours spent in meditation with profound and persistent mystical experiences.

Reachable at Varun at ASPSecurityKit

Submissions

comment 5y ago · link · parent

Yes, under business/enterprise plan [0], you'll get access to the complete source code on our private GitHub repository.

0: https://ASPSecurityKit.net/pricing/#enterprise

comment 5y ago · link · parent

Not sure what was the particular issue you faced, but ASP.NET Core has come a long way – you can run .NET Core apps on Linux as well, not to mention the whole thing is open source under DotNet Foundation [0].

0: https://dotnetfoundation.org/

comment 5y ago · link · parent

Glad you asked! I'd incurrage to go through this [0] guide, or watch [1] video. But briefly: ASP.NET Core policy authorization works on full trust mode when it comes to the data sent by the callers. This means unless you write code to authorize access to resources, users will have access to everything. And to authorize a single resource mentioned in an API operation, you have to write lot of code including a requirement definition, an authorization handler, and invocation of the authorizationService from the action body. Just imagine doing this for multiple resources in an operation and doing it for hundreds of API operations. All this is hard-coded which is vulnerable to omission and manual mistakes, not to mention the time you spend on writing/maintaining such code.

On the other hand, ASPSecurityKit works on zero-trust principle, which means by default users have access to nothing, and gain access to only those resources you explicitly grant. The best part is that you don't have to write any code for this protection in most cases; your code remains crisp and clean throughout.

0: https://aspsecuritykit.net/guides/aspnet-policy-authorizatio...

1: https://youtu.be/t-3bhDKJvlY

comment 5y ago · link · parent

from [0]:

> The zero-trust security model assumes breach as the default phenomenon and therefore, it advocates verifying every request with all possible options available to ensure the legitimacy of the request. It also emphasizes following the principle of least privilege access to limit access to the system for only the functions requested even though the elevated privilege might be available for the caller.

> Zero-trust and least privilege access are fundemental principles to ASPSecurityKit design. Few examples:

> 1. As you apply ASPSecurityKit’s ProtectAttribute on the base controller (or the base service in ServiceStack) or as a global filter, it instantly begins guarding all operations of your web application with a multi-stage security pipeline that involves, among other things, XSS validation, authentication, multi-factor, authorization. All these checks are necessary unless you disable one or more for specific operations.

> 2. Following the same principles, activity-based, data-aware authorization components enforce that to execute an operation, the caller must possess its corresponding permissionCode, and any existing data being referred for the operation must also have been permitted. You can selectively exclude operations and data from these checks, but the default is to guard everything. The user verification, user suspension and entity suspension checks are designed to block every incoming requests if the corresponding check fails, and give you tools and control to explicitly exclude certain operations (of your choice) from the check.

...

https://aspsecuritykit.net/docs/article/introduction/#zero-t...

comment 5y ago · link · parent

Not a crime IMO, but a little prank, and the principle understood it. It was pleasurable to read btw!

comment 5y ago · link · parent

I have used Black Lotus app [0] and on multiple occasions, its novel framework called RARE (Reflect, Act, Reinforce and Evaluate) has helped me come out of the stress/anxiety I'd suddenly found myself trapped into.

There are different kinds of RARE goals depending on what you're going through at the moment (stress/lack of focus/mindfullness/etc) and each has its own duration (typically 21 days), during which you daily perform such activities like guided meditation, a guided breathing exercise, a random act of kindness, reading of some wisdom article/inspiring RAK story and many a times, expressing gratitude.

0: https://www.blacklotus.app/

157.

Lessons from Ubiquiti breach: Advice on protecting admin user accounts(aspsecuritykit.net ↗)

1 points · by TriNetra · 5y ago · discuss

comment 5y ago · link · parent

When you're operating such massive services, at minimum you should protect the admin accounts not just with 2FA, but also with IP firewall. Looks like both were missing from here ...

comment 5y ago · link · parent

You'll get millions of dollars invested in hype-and-nothing-really-to-show-for-it startups, or sold for hundreds of millions of dollars to a fortune 500 the product which is then phased out into a black whole in an year two from the buyer company's portfolio for the same reasons – having found a right connection at one of those three levels.

comment 5y ago · link · parent

And unfortunatley, the web will be forced to move toward verified human identities to fight with such junk and anonymous browsing will become a thing of the history.

comment 5y ago · link · parent

Congratulation! Looks like a quite an interesting problem and domain to build software for.

How did you get your first customer? Was it easy because of Nick connections or, did the customer require lot of convincing and value demonstration?

comment 5y ago · link · parent

In reality, most of the applications are using it for authentication: to identify who you are using your GitHub, FaceBook or Google account. Authorization is the process of determining whether the identity can perform the specified action on the specified data [0]; such social logins provide close to no real options to users to specify this aspect.

0: https://aspsecuritykit.net/guides/designing-activity-based-d...

comment 5y ago · link · parent

You can use HMAC [0]. Create a UI to collect username/password and make an API call to login endpoint, which should return sessionId/secret. going forward sign API requests using the HMAC protocol without ever revealing the secret on the wire again.

0: https://aspsecuritykit.net/guides/implementing-hmac-scheme-t...

comment 5y ago · link · parent

Many a times, I start walking when I've to think something challenging, which my brain is otherwise trying to avoid by distracting into something else, so am not surprised.

comment 5y ago · link · parent

yes, for content-only sites it makes perfect sense. For sites hosting private data requiring login, (especially if there's some sensitive information in the URL) it poses a risk.

comment 5y ago · link · parent

We chose not to add referrer to ASPSecurityKit main site [0]. It's a static content site and I think it'd be useful to let other sites know which page (docs/guides/blog) on our site got them a visitor because the content is public anyway. We've applied it on the dashboard though, this same origin-when-cross-origin policy.

0: https://ASPSecurityKit.net

167.

Commitment(os.me ↗)

1 points · by TriNetra · 5y ago · discuss

comment 5y ago · link · parent

Obviously if they are logging all actions of all users, and there's some decent retention period, they can find out how many people got unintended access and what all they did with it. Recently, I got an advice from a C-level executive to include such analytics in ASPSecurityKit [0], because that's what companies are looking for these days. This GH incident makes me consider his suggestion more seriously.

0: https://ASPSecurityKit.net

comment 5y ago · link · parent

How about you start with a premise that you're a drop in the ocean of consciousness which is eternal, imperishable – the ocean was always there and so it'll always be in future – what about if it's even beyond time because time is a construct of the mind and consciousness is subtler than the mind. Now you have infinite time to take different manifestations as per your desires.

comment 5y ago · link · parent

A verse comes in Chandogya Upanishad: "Sarvam Khalvidam Brahma" (all this is consciousness)

comment 5y ago · link · parent

Another benefit of struct is since enumeration can't be inherited, you can achieve something similar with struct and operator overload magic as I did with OpResult [0], to allow consuming applications of ASPSecurityKit extend possible OpResult values with their app specific failure codes, without having to do ugly explicit casting if an enum was used instead.

0: https://aspsecuritykit.net/docs/api-reference/aspsecuritykit...

comment 5y ago · link · parent

Indeed there's always some secret sauce in finding product-market fit - but it's always specific to every product! One can only discover it by toiling hard with customers and be opened for unbias evaluation of inputs coming from all the sides. There's no guarantee that you'll discover it for your product before you run out of the inner drive to toil.

comment 5y ago · link · parent

Hello HN!

We've been exclusively working on ASPSecurityKit v3 for last 10 months. you can try it out on https://ASPSecurityKit.net/try-for-free ASK supports six web frameworks (related to .NET as of now) and in addition to the library packages, it also provides source packages (for both MVC and API projects) which are drop-in source code functionality covering such common things needed in every web app: profile (change username/password/firewal/etc.), email verification, 2-factor, forgot password, user management, administration, localization etc.

I'm here to respond to any queries you may have.

edit: to see an example of building with ASK, you can watch this video that builds a digital banking SaaS web application: https://www.youtube.com/watch?v=24MXgDIunVs

174.

Show HN: Enterprise-grade security simplified for developers(aspsecuritykit.net ↗)

6 points · by TriNetra · 5y ago · 2 comments

175.

What Is Dharma – Ultimate Path to Enlightenment(os.me ↗)

2 points · by TriNetra · 5y ago · discuss

comment 5y ago · link · parent

Could you share these methods? will be helpful. thanks!

comment 5y ago · link · parent

There was a man with a cat and he loved it so dearly. One day he thought if the cat would have been a woman, they'd have a nice time together. The God was listening – low and behold the cat turned into a beautiful woman instantly.

The man was surprised but overjoyed. A few years passed with both having a great time together, and one day ...

A mouse appeared in front of the woman and she grabbed it with her tender hand and ate it raw and alive right that very moment.

The man was disgusted to see this and the God remarked "Look I can change a being from outside but what they are inside even I can't change!"

Disclaimer: No pun intended; just sharing after reading the title for fun. No offence to cats around :)

comment 5y ago · link · parent

It's now lifted [0]. I'd not like any ban on freedom – however the ban was on the geographic area and anyone living in there had been effected of course. Hopefully things will only improve from here.

Being running a purely internet business I can completely understand the pain and frustration it would have caused. However, if I see the bigger picture, Lack of ban would have caused hundred of lives in the aftermath of change in constitutional status of the J&K. It's like lockdown that we all had to endure to save lives.

You have the right to your opinion but this is how I see it.

Take Care

0: https://indianexpress.com/article/india/kashmir-internet-4g-...

comment 5y ago · link · parent

I second re docs. VS Intellisense has served me very well for known tech (ASP.NET etc); for new tech I rely on official docs or nutshell style books to be with me. I've created ASPSecurityKit.net [0], that sets up a new web app [1] (API/MVC) with user account related workflows; adding the business features then is easy for me.

In my initial days of programming in school/college, I relied almost entirely on local MSDN library installation (during VB6 days, it used to come in three CDs), to learn VB6 and build apps. With that, I built a multi-lingual word processor, a screen reader and some other nice tools that got me hooked with coding. It was around 2003-2006 and I used to only search on internet whenever I needed to add something not supported out-of-the-box in VB6 like Win32 APIs etc.

0: https://ASPSecurityKit.net 1: https://www.youtube.com/watch?v=TmUO90JNlvs

comment 5y ago · link · parent

I recently read a story in the book 'Influence – The Psychology of Persuasion' (by Robert B. Cialdini):

> I GOT A PHONE CALL ONE DAY FROM A FRIEND WHO HAD RECENTLY opened an Indian jewelry store in Arizona. She was giddy with a curious piece of news. Something fascinating had just happened, and she thought that, as a psychologist, I might be able to explain it to her. The story involved a certain allotment of turquoise jewelry she had been having trouble selling. It was the peak of the tourist season, the store was unusually full of customers, the turquoise pieces were of good quality for the prices she was asking; yet they had not sold. My friend had attempted a couple of standard sales tricks to get them moving. She tried calling attention to them by shifting their location to a more central display area; no luck. She even told her sales staff to “push” the items hard, again without success. Finally, the night before leaving on an out-of-town buying trip, she scribbled an exasperated note to her head saleswoman, “Everything in this display case, price × ½,” hoping just to be rid of the offending pieces, even if at a loss. When she returned a few days later, she was not surprised to find that every article had been sold. She was shocked, though, to discover that, because the employee had read the “½” in her scrawled message as a “2,” the entire allotment had sold out at twice the original price!

> It is easy to fault the tourists for their foolish purchase decisions. But a close look offers a kinder view. These were people who had been brought up on the rule “You get what you pay for” and who had seen that rule borne out over and over in their lives. Before long, they had translated the rule to mean “expensive = good.” The “expensive = good” stereotype had worked quite well for them in the past, since normally the price of an item increases along with its worth; a higher price typically reflects higher quality. So when they found themselves in the position of wanting good turquoise jewelry without much knowledge of turquoise, they understandably relied on the old standby feature of cost to determine the jewelry’s merits.

1
45678